Details
-
Bug
-
Status: Resolved (View Workflow)
-
Minor
-
Resolution: Fixed
-
None
-
Jenkins ver. 1.421
Jenkins Promoted Builds Plugin 2.2
Description
When a promotion is renamed, all subsequent promotions of the new name will also promote it with the old name.
To reproduce, I did the following:
- Create a job test-downstream, leave all settings as-is.
- Create a job test-upstream, and set the following:
- Promote builds when ...
- Name: First promotion
- When the following downstream projects build successfully: test-downstream
- Post-build actions, build other projects: test-downstream
- Promote builds when ...
- Save settings, and then click Configure again.
- Change the name of the promotion from First promotion to Second promotion.
- Save.
- Run the build of test-upstream, wait for the build of test-upstream and test-downstream to complete (about 10s with quiet periods etc).
Now you'll observe that the new build has two gold stars: First promotion and Second promotion. Going to /job/test-upstream/1/promotion/ will show First promotion as "Pending promotion" for some reason. It shouldn't be there at all!
Attachments
Issue Links
- is related to
-
JENKINS-27716 Copying A Job With Promotions and Renaming New Promotion Causes Phantom Promotions
-
- Resolved
-
-
JENKINS-8783 Renamin promotion process doesn't remove the original promotion process
-
- Resolved
-
-
JENKINS-12799 When project configuration is changed, Promoted Builds Plugin continues to use "old" configuration data
-
- Resolved
-
@Jørgen
It depends on why the promotion process was renamed.
If the promotion process is renamed, you may want to retain the old promotions with the old name, or you may want to rename all the old promotions too. In reality
JENKINS-8783should be fixed by adding a three button confirm rather than [Yes]/[No] it should be [Rename process and all previous promotions of this process]/[Rename process leaving all previous promotions with the old name]/[No]That would make it clear why/how you can have disabled processes left lying around after a rename IMHO