Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rtMavenRun delayed for a minute before executing maven #883

Open
tginiotis-at-work opened this issue Aug 29, 2023 · 0 comments
Open

rtMavenRun delayed for a minute before executing maven #883

tginiotis-at-work opened this issue Aug 29, 2023 · 0 comments
Labels
question Further information is requested

Comments

@tginiotis-at-work
Copy link

I have a Jenkinsfile that is roughly:

docker.image(dockerImageName).inside() {
    rtMavenRun(
        pom: 'pom.xml',
        goals: "...",
        opts: "...",
        resolverId: '...'
        deployerId: '...'
    )
}

docker.image(dockerImageName).inside() {
    rtMavenRun(
        pom: 'pom.xml',
        goals: "...",
        opts: "...",
        resolverId: '...'
        deployerId: '...'
    )
}
...

I.e. multiple rtMavenRun invocations in different docker containers one after another.

Each rtMavenRun invocation the Jenkins log almost immediately shows:

Executing command: /bin/sh -c git log --pretty=format:%s -1
Jenkins Artifactory Plugin version: 3.18.9
Couldn't find Maven home at /usr/share/maven on agent JNLP4-connect connection from 10-194-46-29.felix-metrics-svc.kube-system.svc.cluster.local/10.194.46.29:21664. This could be because this build is running inside a Docker container.
Artifactory integration is enabled

and then seemingly pauses for a minute. After a minute it continues with executing maven.

I have noticed that the minute delay does not happen if rtMavenRun is executed again in the same docker container.

What is rtMavenRun doing on first execution in a container that takes a minute before mvn is even executed? Is there some way to work around the delay? As in save and pass in some state or disable something?

@tginiotis-at-work tginiotis-at-work added the question Further information is requested label Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant