-
Bug
-
Resolution: Unresolved
-
Major
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.
The M2 Release plugin only works with Maven projects, not freestyle or Pipeline. I doubt something like this would be implemented per se. Better to create a separate job dedicated to running releases, which would have different triggering—for example, no polling or SCM trigger, but a string parameter asking to select the branch to release—and different build steps (mvn -B release:prepare release:perform, probably just pass/fail, no detailed reporting needed).