问题
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