Adding “Perform Maven Release” option from Jenkinsfile

241 views
Skip to first unread message

Harsha Adiga

unread,
Aug 31, 2016, 3:46:05 PM8/31/16
to Jenkins Users
Is there a way to make the Perform Maven Release option visible under the job created using Jenkinsfile? I have a job that is created manually and it has this option set by selecting the Maven release build option in Configure job->Build environment settings. I am trying to convert this manual job to pipeline job using Jenkinsfile. 

Mark Bidewell

unread,
Sep 17, 2016, 12:08:33 PM9/17/16
to Jenkins Users
I'm not using a Jenkinsfile, but the solution I arrived at was to have a boolean "Release" build parameter.  When checked, this parameter would skip the normal CI SNAPSHOT build and initiate a release.  My stages when

Source Checkout -> SNAPSHOT Build -> Stage Release -> Release Build

The "Stage Release" reads the pom and presents inputs for the build numbers.

Does that help? 
Reply all
Reply to author
Forward
0 new messages