Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-25162

ItemListener event not fired when user changes the project label

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • core
    • jenkins LTS ver 1.565.3
      Ubuntu precise

      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

          Khai Do created issue -
          Khai Do made changes -
          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
          Khai Do made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 159071 ] New: JNJira + In-Review [ 195982 ]

            Unassigned Unassigned
            zaro Khai Do
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: