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

Configuration Job-Watching in jobA affects all of other job's Job-Watching

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • email-ext-plugin
    • None
    • Ubuntu 16.04.4
      OpenJDK 8u171-b11-0ubuntu0.16.04.1
      Jenkins core 2.107.3 | 2.46.2
      Email Extension 2.62 | 2.57.2

      Steps:
      1. Create 2 free-style jobs with "Watch Job" enabled:
      Test1 and Test2

      (To enable "Watch Job" you need to add "Editable Email Notification" step in Post-Build)

      2. Click "Watch Job" link to configure job watching for Test1 job
      and "SUBMIT" and the link becomes "Configure Job Watching"

      3. Open Test2 job and "Watch Job" link becomes "Configure Job Watching" too!

      4. Under "User > Configure > Extended Email Job Watching" setcion,
      it shows "No configuration available"
      ------------------------------
      At this point, only Test1 watch job email notification is really working
      ------------------------------

      5. Open Test2 job and click "Configure Job Watching" and "SUBMIT"
      ------------------------------
      Now both Test1 and Test2 watch job email notification is working.
      But job wtach configuration in one job affects configurations in other jobs,
      and "User > Configure > Extended Email Job Watching" setcion still shows "No configuration available".
      ------------------------------

      6. Open "Test1" job and stop job watching.
      ------------------------------
      This would stop all of job watching including "Test2".
      "Test2" job link becomes "Watch Job" and no more emails
      ------------------------------

        1. Selection_007.png
          Selection_007.png
          67 kB
        2. Selection_008.png
          Selection_008.png
          19 kB
        3. Selection_009.png
          Selection_009.png
          18 kB
        4. EditableEmailNotificationt.PNG
          EditableEmailNotificationt.PNG
          40 kB

          [JENKINS-52684] Configuration Job-Watching in jobA affects all of other job's Job-Watching

          Rick Liu created issue -

          Rick Liu added a comment -

          I can reproduce on:
          Jenkins core 2.107.3
          Email Extension 2.62
          and
          Jenkins core 2.46.2
          Email Extension 2.57.2

          Rick Liu added a comment - I can reproduce on: Jenkins core 2.107.3 Email Extension 2.62 and Jenkins core 2.46.2 Email Extension 2.57.2
          Rick Liu made changes -
          Description Original: Steps:
          1. Create 2 free-style jobs with "Watch Job" enabled:
          *Test1 and Test2*

          2. Click "*Watch Job*" link to configure job watching for *Test1* job
          and "*SUBMIT*" and the link becomes "*Configure Job Watching*"

          3. Open *Test2* job and "Watch Job" link becomes "Configure Job Watching" too!

          4. Under "*User > Configure > Extended Email Job Watching*" setcion,
          it shows "*No configuration available*"
          ------------------------------
          At this point, only *Test1* watch job email notification is really working
          ------------------------------

          5. Open *Test2* job and click "Configure Job Watching" and "*SUBMIT*"
          ------------------------------
          Now both Test1 and Test2 watch job email notification is working.
          But job wtach configuration in one job affects configurations in other jobs,
          and "*User > Configure > Extended Email Job Watching*" setcion still shows "*No configuration available*".
          ------------------------------

          6. Open "*Test1*" job and stop job watching.
          ------------------------------
          This would stop all of job watching including "*Test2*".
          "*Test2*" job link becomes "*Watch Job*" and no more emails
          ------------------------------


          New: Steps:
          1. Create 2 free-style jobs with "Watch Job" enabled:
          *Test1 and Test2*

          2. Click "*Watch Job*" link to configure job watching for *Test1* job
          and "*SUBMIT*" and the link becomes "*Configure Job Watching*"

          3. Open *Test2* job and "Watch Job" link becomes "*Configure Job Watching*" too!

          4. Under "*User > Configure > Extended Email Job Watching*" setcion,
          it shows "*No configuration available*"
          ------------------------------
          At this point, only *Test1* watch job email notification is really working
          ------------------------------

          5. Open *Test2* job and click "Configure Job Watching" and "*SUBMIT*"
          ------------------------------
          Now both Test1 and Test2 watch job email notification is working.
          But job wtach configuration in one job affects configurations in other jobs,
          and "*User > Configure > Extended Email Job Watching*" setcion still shows "*No configuration available*".
          ------------------------------

          6. Open "*Test1*" job and stop job watching.
          ------------------------------
          This would stop all of job watching including "*Test2*".
          "*Test2*" job link becomes "*Watch Job*" and no more emails
          ------------------------------


          Rick Liu made changes -
          Description Original: Steps:
          1. Create 2 free-style jobs with "Watch Job" enabled:
          *Test1 and Test2*

          2. Click "*Watch Job*" link to configure job watching for *Test1* job
          and "*SUBMIT*" and the link becomes "*Configure Job Watching*"

          3. Open *Test2* job and "Watch Job" link becomes "*Configure Job Watching*" too!

          4. Under "*User > Configure > Extended Email Job Watching*" setcion,
          it shows "*No configuration available*"
          ------------------------------
          At this point, only *Test1* watch job email notification is really working
          ------------------------------

          5. Open *Test2* job and click "Configure Job Watching" and "*SUBMIT*"
          ------------------------------
          Now both Test1 and Test2 watch job email notification is working.
          But job wtach configuration in one job affects configurations in other jobs,
          and "*User > Configure > Extended Email Job Watching*" setcion still shows "*No configuration available*".
          ------------------------------

          6. Open "*Test1*" job and stop job watching.
          ------------------------------
          This would stop all of job watching including "*Test2*".
          "*Test2*" job link becomes "*Watch Job*" and no more emails
          ------------------------------


          New: Steps:
          1. Create 2 free-style jobs with "Watch Job" enabled:
          *Test1 and Test2*

          2. Click "*Watch Job*" link to configure job watching for *Test1* job
          and "*SUBMIT*" and the link becomes "*Configure Job Watching*"

          3. Open *Test2* job and "Watch Job" link becomes "*Configure Job Watching*" too!

          4. Under "*User > Configure > Extended Email Job Watching*" setcion,
          it shows "*No configuration available*"
          ------------------------------
          At this point, only *Test1* watch job email notification is really working
          ------------------------------

          5. Open *Test2* job and click "*Configure Job Watching*" and "*SUBMIT*"
          ------------------------------
          Now both Test1 and Test2 watch job email notification is working.
          But job wtach configuration in one job affects configurations in other jobs,
          and "*User > Configure > Extended Email Job Watching*" setcion still shows "*No configuration available*".
          ------------------------------

          6. Open "*Test1*" job and stop job watching.
          ------------------------------
          This would stop all of job watching including "*Test2*".
          "*Test2*" job link becomes "*Watch Job*" and no more emails
          ------------------------------


          Rick Liu made changes -
          Attachment New: Selection_007.png [ 43464 ]
          Attachment New: Selection_008.png [ 43465 ]
          Attachment New: Selection_009.png [ 43466 ]

          Daniel Gront added a comment -

          totoroliu, When I created a freestyle job there is no "Watch Job" option and I enabled "Enable watching for jobs" in global configuration.

          How can I reproduce this?

           

          Daniel Gront added a comment - totoroliu , When I created a freestyle job there is no "Watch Job" option and I enabled "Enable watching for jobs" in global configuration. How can I reproduce this?  
          Rick Liu made changes -
          Description Original: Steps:
          1. Create 2 free-style jobs with "Watch Job" enabled:
          *Test1 and Test2*

          2. Click "*Watch Job*" link to configure job watching for *Test1* job
          and "*SUBMIT*" and the link becomes "*Configure Job Watching*"

          3. Open *Test2* job and "Watch Job" link becomes "*Configure Job Watching*" too!

          4. Under "*User > Configure > Extended Email Job Watching*" setcion,
          it shows "*No configuration available*"
          ------------------------------
          At this point, only *Test1* watch job email notification is really working
          ------------------------------

          5. Open *Test2* job and click "*Configure Job Watching*" and "*SUBMIT*"
          ------------------------------
          Now both Test1 and Test2 watch job email notification is working.
          But job wtach configuration in one job affects configurations in other jobs,
          and "*User > Configure > Extended Email Job Watching*" setcion still shows "*No configuration available*".
          ------------------------------

          6. Open "*Test1*" job and stop job watching.
          ------------------------------
          This would stop all of job watching including "*Test2*".
          "*Test2*" job link becomes "*Watch Job*" and no more emails
          ------------------------------


          New: Steps:
          1. Create 2 free-style jobs with "Watch Job" enabled:
          *Test1 and Test2*

          (To enable "Watch Job" you need to add "Editable Email Notification" step in Post-Build)

          2. Click "*Watch Job*" link to configure job watching for *Test1* job
          and "*SUBMIT*" and the link becomes "*Configure Job Watching*"

          3. Open *Test2* job and "Watch Job" link becomes "*Configure Job Watching*" too!

          4. Under "*User > Configure > Extended Email Job Watching*" setcion,
          it shows "*No configuration available*"
          ------------------------------
          At this point, only *Test1* watch job email notification is really working
          ------------------------------

          5. Open *Test2* job and click "*Configure Job Watching*" and "*SUBMIT*"
          ------------------------------
          Now both Test1 and Test2 watch job email notification is working.
          But job wtach configuration in one job affects configurations in other jobs,
          and "*User > Configure > Extended Email Job Watching*" setcion still shows "*No configuration available*".
          ------------------------------

          6. Open "*Test1*" job and stop job watching.
          ------------------------------
          This would stop all of job watching including "*Test2*".
          "*Test2*" job link becomes "*Watch Job*" and no more emails
          ------------------------------


          Rick Liu made changes -
          Attachment New: EditableEmailNotificationt.PNG [ 44427 ]

          Rick Liu added a comment -

          I believe you need to at least add "Editable Email Notification" step in Post-Build section.

          Rick Liu added a comment - I believe you need to at least add "Editable Email Notification" step in Post-Build section.

          Daniel Gront added a comment -

          Yeah, I've done that, It might be another issue that it doesn't appear. I'll try to look it up.

          Daniel Gront added a comment - Yeah, I've done that, It might be another issue that it doesn't appear. I'll try to look it up.

            Unassigned Unassigned
            totoroliu Rick Liu
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: