I am just attempting to do a release:prepare with a development version set via
a Jenkins Parameter
I have a job for the project (which for now is just our master pom) - that
takes 3 jenkins parameters
1. GOALS - maven goals to run
2. PROFILES - maven profiles to use
3. SVN_LOC - relative location in SVN (eg, "trunk" or "branches/Branch-A")
a. This is used in our SVN URL so we can use the same job against various
branches or the trunk
When I call this job directly with:
· GOALS = "-DdevelopmentVersion=1.1.0-SNAPSHOT release:prepare"
· PROFILES = (blank)
· SVN_LOC = "trunk"
It works just fine, as expected
However, I want to trigger this job from a Build Flow where I just have to
specify the "developmentVersion" value.
My Build Flow script is pretty simple:
def GOALS = "-DdevelopmentVersion=" + params["developmentVersion"] + "
release:prepare"
def PROFILES = ""
def SVN_LOC = "trunk"
build("Master POM (no clean)", GOALS: GOALS, PROFILES: PROFILES, SVN_LOC:
SVN_LOC)
so that should be exactly the same as my direct job build, however I get a
build error down in the project job due to the project being "banned" from the
build. I have gone back and altered the maven goals so that both jobs run
successfully multiple times in a row (basically just a "clean"). Yet this error
continue to occur. I get nothing like this when I call the project job directly
- even after this error occurs. I have ensured I don't have the tag in SVN and
the POM version has been reverted, done release:rollback and clean's, etc, etc
(even wiping out the whole Jenkins workspace doesn't help). My only guess is
that Build Flow has something to do with this?
Started by upstream project "Trigger HEAD (Master POM -
release-prepare)<http://svn.goldenhourlive.com:8080/jenkins/job/Trigger%20HEAD%20(Master%20POM%20-%20release-prepare)/>"
build number
20<http://svn.goldenhourlive.com:8080/jenkins/job/Trigger%20HEAD%20(Master%20POM%20-%20release-prepare)/20>
<-- This is the trigger job
originally caused by:
Started by user Anonymous
Building in workspace /home/tomcat/.jenkins/workspace/Master POM (no clean) <--
This is the project job
Updating https://svn.com/XXX/trunk/master-pom at revision
'2015-10-14T16:51:39.157 -0700'
At revision 30043
Parsing POMs
Established TCP socket on 57401
[Master POM (no clean)] $
/home/tomcat/.jenkins/tools/hudson.model.JDK/JDK_1.8/bin/java
-Dmaven.test.skip=true -cp
/home/tomcat/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven32-agent-1.7.jar:/home/tomcat/.jenkins/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.3.3/boot/plexus-classworlds-2.5.2.jar:/home/tomcat/.jenkins/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.3.3/conf/logging
jenkins.maven3.agent.Maven32Main
/home/tomcat/.jenkins/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.3.3
/usr/share/apache-tomcat-7.0.29/webapps/jenkins/WEB-INF/lib/remoting-2.52.jar
/home/tomcat/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven32-interceptor-1.7.jar
/home/tomcat/.jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.7.jar
57401
<===[JENKINS REMOTING CAPACITY]===>channel started
Executing Maven: -B -f /home/tomcat/.jenkins/workspace/Master POM (no
clean)/pom.xml -DdevelopmentVersion=1.1.0-SNAPSHOT release:prepare
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Master POM 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Notifying upstream projects of job completion
Join notifier requires a CauseAction
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Skipping Master POM
[INFO] This project has been banned from the build due to previous failures.
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.296 s
[INFO] Finished at: 2015-10-14T16:51:47-07:00
[INFO] Final Memory: 16M/107M
[INFO] ------------------------------------------------------------------------
[ERROR] Unknown lifecycle phase "-DdevelopmentVersion=1.1.0-SNAPSHOT". You must
specify a valid lifecycle phase or a goal in the format <plugin-prefix>:<goal>
or <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>. Available
lifecycle phases are: validate, initialize, generate-sources, process-sources,
generate-resources, process-resources, compile, process-classes,
generate-test-sources, process-test-sources, generate-test-resources,
process-test-resources, test-compile, process-test-classes, test,
prepare-package, package, pre-integration-test, integration-test,
post-integration-test, verify, install, deploy, pre-clean, clean, post-clean,
pre-site, site, post-site, site-deploy. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please
read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/LifecyclePhaseNotFoundException
[JENKINS] Archiving /home/tomcat/.jenkins/workspace/Master POM (no
clean)/pom.xml to
com.ghd.pom/master-pom/1.0.0-SNAPSHOT/master-pom-1.0.0-SNAPSHOT.pom
channel stopped
Notifying upstream projects of job completion
Finished: FAILURE
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jenkinsci-users/7FB4F0EC1916C84CBA95F6E5A360E40A014A4538E3A6%40ghex01.hq.ghds.net.
For more options, visit https://groups.google.com/d/optout.