Why do I see a “force promotion” button when using the Jenkins Promoted Builds plugin?

荒凉一梦 提交于 2019-12-23 03:15:09

问题


When using the Jenkins Promoted Builds plugin, why do I see a "Force promotion" option? It sometimes appears either instead of or in addition to the expected "Approve" button.


回答1:


The "Force Promotion" button seems to appear when you are not an "official" approver for a manual approval step or some other promotion condition has not yet been met - and you have the "Promotion" permission associated with your Jenkins role.

In addition, for at least some roles providers (like Cloudbees RBAC), the promotion plugin doesn't appear to recognize group names for manual approvers. For this case you will have to put in the full email address of the approvers - then they get the actual "approve" button.




回答2:


Force Promotion button appears when you have global or job-local credentials, in particular the "Promote" credential. Please note when you click Force Promotion, it then becomes Re-Execute Promotion. The functionality remains the same. It will not be shown if user is not logged in.

The Approve button is different, and appears only to approved promoters, as specified in the job configuration's promotion configuration. If no list of approvers is provided, it will be shown to everyone. It will be shown even if no user is logged in. It is worth noting that the "approve" action cannot be re-executed (unless with Force Promotion)



来源:https://stackoverflow.com/questions/23111888/why-do-i-see-a-force-promotion-button-when-using-the-jenkins-promoted-builds-p

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