The jenkins ItemListener does not fire events when user updates project labels. I would expect the onUpdated event to fire.
Steps to repro:
1. create a new project
2. select 'Restrict where this project can be run' box and add a label that matches a slave the save the project.
3. now configure the same project and change the label to match a different slave then save the project.
Note1 - No events are fired.
Note2 - If on step #3, you un-select the option 'Restrict where this project can be run' (thereby removing the label) then save an event does get called.
[JENKINS-25162] ItemListener event not fired when user changes the project label
Description | Original: The jenkins ItemListener does not fire events when user clicks on the button to disable and enable a project. That button should at least fire an onUpdated event. |
New:
The jenkins ItemListener does not fire events when user updates project labels. I would expect the onUpdated event to fire. Steps to repro: 1. create a new project 2. select 'Restrict where this project can be run' box and add a label that matches a slave the save the project. 3. now configure the same project and change the label to match a different slave then save the project. Note1 - No events are fired. Note2 - If on step #3, you un-select the option 'Restrict where this project can be run' (thereby removing the label) then save an event does get called. |
Environment |
Original:
ubuntu quantal jenkins ver 1.502 |
New:
jenkins LTS ver 1.565.3 Ubuntu precise |
Summary | Original: ItemListener.onUpdate() event not fired when user updates the project label | New: ItemListener event not fired when user changes the project label |
Resolution | New: Not A Defect [ 7 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Workflow | Original: JNJira [ 159071 ] | New: JNJira + In-Review [ 195982 ] |