• Icon: New Feature New Feature
    • Resolution: Fixed
    • Icon: Major Major
    • email-ext-plugin
    • None

      It would be cool if there was a button on a job's summary screen that you could click to Watch the issue, so you were notified when certain changes happened instead of having to configure the job and add yourself to the email list.

      Could even take it one step further and under the user's options, allow them to set default Watch options.

          [JENKINS-18567] Add Watch button to Job summary screen

          I have try this feature and it was good. But I don't understand why when I add a trigger on "Watch Job", I have the choice of who I would send a mail (developers, recipient list, culprits...). I think that is not usefull and this feature would just add me as receiver list.

          Doesn't work, if we have no authentification on jenkins (exemple, a test instance).

          Mathieu Cantin added a comment - I have try this feature and it was good. But I don't understand why when I add a trigger on "Watch Job", I have the choice of who I would send a mail (developers, recipient list, culprits...). I think that is not usefull and this feature would just add me as receiver list. Doesn't work, if we have no authentification on jenkins (exemple, a test instance).

          Alex Earl added a comment -

          Since I'm am reusing the UI for the trigger setup, the selection of recipients is still there, but only the person who is setting up the trigger will be emailed. If there is no authentication, how would the plugin know who to send the email to? The user would be Anonymous without login. The feature requires authentication in order to work.

          Alex Earl added a comment - Since I'm am reusing the UI for the trigger setup, the selection of recipients is still there, but only the person who is setting up the trigger will be emailed. If there is no authentication, how would the plugin know who to send the email to? The user would be Anonymous without login. The feature requires authentication in order to work.

          My idea was to allow subscribe yourself, not allow somebody to configure job's notifications.
          If you are anonymous, then doesn't allow to subscribe. (developers, recipient list, culprits...) - should not be available here.

          Kanstantsin Shautsou added a comment - My idea was to allow subscribe yourself, not allow somebody to configure job's notifications. If you are anonymous, then doesn't allow to subscribe. (developers, recipient list, culprits...) - should not be available here.

          Alex Earl added a comment -

          You don't configure the job's notifications, it only subscribes you. If you are anonymous, then it doesn't allow you to watch a job. I don't want to have a separate UI for this vs. the normal configuration. so maybe I can set some variable to remove those items in the watch area.

          Alex Earl added a comment - You don't configure the job's notifications, it only subscribes you. If you are anonymous, then it doesn't allow you to watch a job. I don't want to have a separate UI for this vs. the normal configuration. so maybe I can set some variable to remove those items in the watch area.

          Code changed in jenkins
          User: Alex Earl
          Path:
          pom.xml
          src/main/java/hudson/plugins/emailext/AttachmentUtils.java
          src/main/java/hudson/plugins/emailext/EmailExtTemplateAction.java
          src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java
          src/main/java/hudson/plugins/emailext/ExtendedEmailPublisherDescriptor.java
          src/main/java/hudson/plugins/emailext/plugins/CssInliner.java
          src/main/java/hudson/plugins/emailext/plugins/EmailTrigger.java
          src/main/java/hudson/plugins/emailext/plugins/EmailTriggerDescriptor.java
          src/main/java/hudson/plugins/emailext/plugins/trigger/AbstractScriptTrigger.java
          src/main/java/hudson/plugins/emailext/plugins/trigger/PreBuildScriptTrigger.java
          src/main/java/hudson/plugins/emailext/plugins/trigger/ScriptTrigger.java
          src/main/java/hudson/plugins/emailext/watching/EmailExtWatchAction.java
          src/main/java/hudson/plugins/emailext/watching/EmailExtWatchJobProperty.java
          src/main/resources/hudson/plugins/emailext/EmailExtTemplateAction/action.groovy
          src/main/resources/hudson/plugins/emailext/EmailExtTemplateAction/action.jelly
          src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/global.groovy
          src/main/resources/hudson/plugins/emailext/Messages.properties
          src/main/resources/hudson/plugins/emailext/watching/EmailExtWatchAction/help-triggers.html
          src/main/resources/hudson/plugins/emailext/watching/EmailExtWatchAction/help-triggers_ja.html
          src/main/resources/hudson/plugins/emailext/watching/EmailExtWatchAction/help-triggers_zh_TW.html
          src/main/resources/hudson/plugins/emailext/watching/EmailExtWatchAction/index.groovy
          src/main/resources/hudson/plugins/emailext/watching/EmailExtWatchAction/index.properties
          src/main/resources/hudson/plugins/emailext/watching/EmailExtWatchAction/jobMain.groovy
          src/main/webapp/help/globalConfig/watching.html
          src/test/java/hudson/plugins/emailext/EmailTypeTest.java
          src/test/java/hudson/plugins/emailext/plugins/CssInlinerTest.java
          src/test/java/hudson/plugins/emailext/plugins/content/JellyScriptContentTest.java
          src/test/java/hudson/plugins/emailext/plugins/content/ScriptContentChangeLogSet.java
          src/test/java/hudson/plugins/emailext/plugins/content/ScriptContentTest.java
          src/test/java/hudson/plugins/emailext/plugins/recipients/MockUtilities.java
          src/test/resources/recipient-provider-upgrade2.xml
          http://jenkins-ci.org/commit/email-ext-plugin/bb0053d79fec59f34d3014117883282d6c2239dc
          Log:
          Fix JENKINS-18567, JENKINS-25926 and JENKINS-25719

          Added ability for users to watch a job.
          Fixup the html content coming from CssInliner
          Remove adminAddress field for global config

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Alex Earl Path: pom.xml src/main/java/hudson/plugins/emailext/AttachmentUtils.java src/main/java/hudson/plugins/emailext/EmailExtTemplateAction.java src/main/java/hudson/plugins/emailext/ExtendedEmailPublisher.java src/main/java/hudson/plugins/emailext/ExtendedEmailPublisherDescriptor.java src/main/java/hudson/plugins/emailext/plugins/CssInliner.java src/main/java/hudson/plugins/emailext/plugins/EmailTrigger.java src/main/java/hudson/plugins/emailext/plugins/EmailTriggerDescriptor.java src/main/java/hudson/plugins/emailext/plugins/trigger/AbstractScriptTrigger.java src/main/java/hudson/plugins/emailext/plugins/trigger/PreBuildScriptTrigger.java src/main/java/hudson/plugins/emailext/plugins/trigger/ScriptTrigger.java src/main/java/hudson/plugins/emailext/watching/EmailExtWatchAction.java src/main/java/hudson/plugins/emailext/watching/EmailExtWatchJobProperty.java src/main/resources/hudson/plugins/emailext/EmailExtTemplateAction/action.groovy src/main/resources/hudson/plugins/emailext/EmailExtTemplateAction/action.jelly src/main/resources/hudson/plugins/emailext/ExtendedEmailPublisher/global.groovy src/main/resources/hudson/plugins/emailext/Messages.properties src/main/resources/hudson/plugins/emailext/watching/EmailExtWatchAction/help-triggers.html src/main/resources/hudson/plugins/emailext/watching/EmailExtWatchAction/help-triggers_ja.html src/main/resources/hudson/plugins/emailext/watching/EmailExtWatchAction/help-triggers_zh_TW.html src/main/resources/hudson/plugins/emailext/watching/EmailExtWatchAction/index.groovy src/main/resources/hudson/plugins/emailext/watching/EmailExtWatchAction/index.properties src/main/resources/hudson/plugins/emailext/watching/EmailExtWatchAction/jobMain.groovy src/main/webapp/help/globalConfig/watching.html src/test/java/hudson/plugins/emailext/EmailTypeTest.java src/test/java/hudson/plugins/emailext/plugins/CssInlinerTest.java src/test/java/hudson/plugins/emailext/plugins/content/JellyScriptContentTest.java src/test/java/hudson/plugins/emailext/plugins/content/ScriptContentChangeLogSet.java src/test/java/hudson/plugins/emailext/plugins/content/ScriptContentTest.java src/test/java/hudson/plugins/emailext/plugins/recipients/MockUtilities.java src/test/resources/recipient-provider-upgrade2.xml http://jenkins-ci.org/commit/email-ext-plugin/bb0053d79fec59f34d3014117883282d6c2239dc Log: Fix JENKINS-18567 , JENKINS-25926 and JENKINS-25719 Added ability for users to watch a job. Fixup the html content coming from CssInliner Remove adminAddress field for global config

          Alex Earl added a comment -

          Watching will be in 2.40

          Alex Earl added a comment - Watching will be in 2.40

          Why you didn't allow us to test it before release?

          Kanstantsin Shautsou added a comment - Why you didn't allow us to test it before release?

          Alex Earl added a comment -

          I haven't released it yet.

          Alex Earl added a comment - I haven't released it yet.

          Tim Bradt added a comment -

          I've enabled the option in system configuration, but can't find any Watch option on the project page in Jenkins.  And there is no documentation for this feature on the main help page for this plugin.  Only cursory mention of it in the revision history.  

          Tim Bradt added a comment - I've enabled the option in system configuration, but can't find any Watch option on the project page in Jenkins.  And there is no documentation for this feature on the main help page for this plugin.  Only cursory mention of it in the revision history.  

          Tim Bradt added a comment -

          Never mind.  I found it where I didn't expect it.  It's not in the main navigation on the top left, but you'll find it when you scroll down the categories in the job summary itself.  I was looking at a multi-job so had to scroll down below the display of job status.

          There still should have been some documentation added for the feature.

          Tim Bradt added a comment - Never mind.  I found it where I didn't expect it.  It's not in the main navigation on the top left, but you'll find it when you scroll down the categories in the job summary itself.  I was looking at a multi-job so had to scroll down below the display of job status. There still should have been some documentation added for the feature.

            slide_o_mix Alex Earl
            mhaderman Michael Haderman
            Votes:
            7 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: