简体   繁体   中英

Jenkins: run the job when the project was released( by performing a maven release)

I have defined a job, and I use Jenkins. I'm pretty new in it. Is it possible to set the job to run each time when the project was released?

Thank you.

There are a couple of ways of doing a Release vs non-release (daily, commit) build.

  1. Check out the functionality of the Release Plugin
  2. Use two different jobs. One for "normal" builds, one for Release builds.

For the projects we are running here, we actually use #2 along with the Promoted Builds Plugin . Normal builds may be promoted to different states ( eg Integration, Verification). During the promotion, the built version of the code is tagged indicating the promotion. When it comes time to make a release build, only those source versions that have been promoted (and tagged) may be built into a Release.

由于我有svn标记,因此我决定使用svn标记(存储所有已发布版本的位置),因此我可以为已发布版本运行我的工作。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM