-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
Jenkins ver. 1.421
Jenkins Promoted Builds Plugin 2.2
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!
- 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
-
[JENKINS-10423] Builds get double promotions after promotion has been renamed
Description |
Original:
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 Now save settings, and then click Configure again. Change First promotion to Second promotion and 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), 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. |
New:
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?? # 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! |
Link |
New:
This issue is related to |
Resolution | New: Fixed [ 1 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
proposed fix https://github.com/jenkinsci/promoted-builds-plugin/pull/14