Affects Version/s: 2.0.3
Fix Version/s: None
In certain situations, the artifactory plugin seems to silently fail to publish info to artifactory. When I look at my build log I will see a line that looks like this:
[INFO] Initializing Artifactory Build-Info Recording
But, at the end of the build, when I would expect to see this line:
[INFO] Artifactory Build Info Recorder: Deploying build info ...
It is not there. On the build page in jenkins, there is a link to the artifactory builds page, but when I click on it I get an error saying that artifactory has no info for that build.
- Jenkins 1.424
- JDK 1.6u26
- Maven 3.0.3
- Artifactory plugin 2.0.3
- Artifactory 22.214.171.124 with power pack
- "Freestyle" build with an "execute shell" section followed by a "Maven" step.
- Artifactory plugin configured to "Capture and publish build info", but not to deploy artifacts.
- This has been happening slave nodes. Not sure whether it happens on the master node or not, attempting that now.
Of note: in my "execute shell" step I have some maven commands that build some things, and some maven commands that run tests. If I comment out the tests commands, then the artifactory plugin seems to publish results successfully. If, however, I add the test commands back in, the artifactory plugin returns to the behavior of silently failing to publish info.
I can see in the build log the exact command that it is running for the maven build step:
/home/thetus/jdk1.6.0_26/bin/java -classpath /usr/thetus/maven/boot/plexus-classworlds-2.4.jar -DbuildInfoConfig.propertiesFile=/tmp/buildInfo7735188796587027076properties -Dmaven.home=/home/thetus/maven -Dm3plugin.lib=/var/lib/jenkins/jobs/workspace/foo/2.0.3 -Dclassworlds.conf=/tmp/classworlds4589758718839785701conf org.codehaus.plexus.classworlds.launcher.Launcher -f pom.xml -B -e -s $WORKSPACE/../../settings.xml install
And I can log in to the machine and run this command myself to reproduce the behavior. I downloaded the source code for 2.0.3 and ran the above command with a debugger attached. I put a ton of breakpoints in to ArtifactoryRedployPublisher, BuildInfoDeployer, Maven3Builder, etc. But none of the breakpoints were ever reached, so I haven't yet been able to determine what is happening.
Will post more details if I find anything. If there are other places that I could put breakpoints that might be useful, I would really appreciate the info!