-
Bug
-
Resolution: Not A Defect
-
Minor
-
None
I'm configuring Jenkins (2.6) with Subversion (TortoiseSVN 1.9.4), Maven (3.3.9), JDK 1.8.0_91 and Artifactory (4.7.6).
Till yesterday we used an older version of Artifactory on an other, separated server. Yesterday I installed the new Artifactory and imported the whole system information from the old one. Now we have installed all on the same Windows Server with actual versions.
But my problem is, that it seems that I always check out just the same old codeversion for release build.
For the explicit Job I use JDK 1.8, Subversion with "Always check out a fresh copy" (seems that "use Update as much as possible" doesn't work correct?!)
Maven goals for release buid: clean install -B -Dresume=false release:prepare release:perform -Darguments="-Dmaven.javadoc.skip=true"
If I start the build, everything is OK:
BUILD SUCCESS --> Checkout seems to be OK (Revision is correct), Parsing POM: Maven executes POM which contains correct root-POM version, correct SNAPSHOT version, correct SNV-folder etc. and using correct settings.xml
If I start the release build:
The build is also successful but when the release part starts, Jenkins tries building another, old release.
In the console output I see it starts with executing goals "deploy". At that point Jenkins ALWAYS tries to build the old release 2.1 (actual 2.2.22 and higher).
Therefore Jenkins downloads and uploads data from the old artifactory (without changes).
If I stop the old artifactory I get the build error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:2.5.3:perform (default-cli) on project bev-web-base: Maven execution failed, exit code: '1' -> [Help 1]
[ERROR]
But I don't understand why Jenkins always tries to build the release 2.1.
I tried to change the maven release plugin from 2.5.3 to 2.5.2, but that was not successful. I also tried to delete all checkout from C:\Program Files (x86)\Jenkins\jobs\Jobname\workspace\ and my local repository but all my changes are unsuccessful.
I have no idea where I should change the configuration to build the actual release... And I have no idea where Jenkins gets the information of release 2.1.
(the configuration for the new artifactory ist actual in settings.xml and root POM)
Can someone help me please?!