-
New Feature
-
Resolution: Unresolved
-
Major
-
None
Can I change the button label "Approve" to something else in promoted build plugin?
I am using promoted-build-plugin and I created a promotion process. In that process I am getting a button called "Approve". After analyzing, it appears that this button label ("Approve" for the first time and 2nd time onwards it appears as "Re-execute promotion") is coming from plugins/script-security/WEB-INF/lib/script-security.jar file.
My requirements are:
- Can I add a new button called "Reject" may be by using some extension plugin or by adding some customization? On that button click, I want to reject the promotion process.
- If above is not possible, I am trying to use a choice parameter for "Approve" or "Reject" and use this exiting button to execute the promotion based on choice selection. Can I change the label of this button (may be "Execute") by any configuration or using some extension?
"Approve" text definitely comes from another location: https://github.com/jenkinsci/promoted-builds-plugin/blob/adfdf61f362fb79cf2e04c14524f460a4d2f41d2/src/main/resources/hudson/plugins/promoted_builds/conditions/ManualCondition/index.jelly#L19
Regarding the requirements, both ones require some development on the plugin side.
It's a new feature, feel free to implement it and to create a pull request.