Maven release: next development version in batch mode

后端 未结 7 2407
一生所求
一生所求 2021-02-19 23:13

I have configured a Jenkins job to release my maven project automatically. This is done by using the following: mvn --batch-mode clean release:prepare release:perform

7条回答
  •  囚心锁ツ
    2021-02-19 23:34

    You could use a commandline parameter without editing the job if you use a parameterized build in Jenkins. Check the "this build is parameterized" option in the job configuration page.

    This won't let Jenkins perform releases entirely on its own (which is good; we don't want the robots to take our jobs!) -- when you manually kick off a build from within Jenkins, you'll be able to set any parameters you've configured.

提交回复
热议问题