Promoted Build Plugin , can not see Promotions

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-21 05:36:11

问题


When I am running the Jenkins Job with promotion setup like below ,

I cant see my promotions after the build is completed in the UI .

Please suggest if I am missing something.


回答1:


Builds that had finished before the promotion was originally created are not "promotable"

Run a new build, and it will show.

Note: this restriction is only on the creation of a new promotion. You can modify the promotion process as much as you need, and it will be executable on older builds without problem (as long as those builds had finished after the original promotion was created)

Edit:
I think I misunderstood your question. It appears you are on the "Promotions History" page, the one at http://$JENKINS_SERVER/$JOB_URL/promotion/. You won't see builds here until they have been triggered for promotion.

To actually trigger a promotion on a build, you have to select the specific build number/job run. Promotions are per job-run, not per job. Each job run has associated promotions with it.

You need to be at http://$JENKINS_SERVER/$JOB_URL/123/promotion/ where 123 is the build number that you want to promote. You can use permalinks instead of 123, such as lastBuild or lastSuccessfulBuild, etc.

To reference to 123 from within the build (in order to use this in email notification links, etc), you can use $BUILD_NUMBER variable.

Through the UI, you need to select a build from the build history, click "Promotion Status" there, and then approve/trigger a promotion (I know it's confusing since both "history page" and "trigger/execution" pages have the same name for the link.)




回答2:


First you have to promote the build then you can see that particular build in promotion status. First click on build number that you want to promote then click click on promotion status from late panel. Here you will see the user who can promote the build. Then you have to approve it for the promotion.



来源:https://stackoverflow.com/questions/31078617/promoted-build-plugin-can-not-see-promotions

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!