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

Redirect URL uses the Blueocean URL rather than the classic one

      mailer-plugin v1.23
      display-url-api v2.3.0
      blueocean-display-url v2.2.0
      jenkins-war v2.138.2 on jdk 1.8.0_192

      As per JENKINS-41578, I've set JENKINS_DISPLAYURL_PROVIDER=org.jenkinsci.plugins.displayurlapi.ClassicDisplayURLProvider

      On a failure email by the mailer plugin, the resulting email has the following URL
      http://<root-url>/jenkins/webapp/job/sample-job/3641/display/redirect?page=changes
      This causes the page to redirect to the Blueocean url instead of the Classic URL.

          [JENKINS-57374] Redirect URL uses the Blueocean URL rather than the classic one

          Croydon Dias created issue -
          Croydon Dias made changes -
          Issue Type Original: Improvement [ 4 ] New: Bug [ 1 ]
          Croydon Dias made changes -
          Description Original: When using Jenkins internally, it is sometimes needed to restrict sending e-mail notification external.

          There should be possible to add allowed domains in which to send e-mails to.

          When using Git as VCS the e-mail address of the committers is stored with the commit, and the mailer will the try to send to all users that might have broken the build.

          If you have cloned an open source project and regularly pulls updates from upstream the mailer might start sending mails to those upstream committers.

          That is not what you want from an internal Jenkins instance.
          New: mailer-plugin v1.23
          display-url-api v2.3.0
          blueocean-display-url v2.2.0

          As per JENKINS-41578, I've set {{JENKINS_DISPLAYURL_PROVIDER=org.jenkinsci.plugins.displayurlapi.ClassicDisplayURLProvider}}

          On a failure email by the mailer plugin, the resulting email has the following URL

          {{http://&lt;root-url&gt;/jenkins/webapp/job/sample-job/3641/display/redirect?page=changes}}
          Croydon Dias made changes -
          Description Original: mailer-plugin v1.23
          display-url-api v2.3.0
          blueocean-display-url v2.2.0

          As per JENKINS-41578, I've set {{JENKINS_DISPLAYURL_PROVIDER=org.jenkinsci.plugins.displayurlapi.ClassicDisplayURLProvider}}

          On a failure email by the mailer plugin, the resulting email has the following URL

          {{http://&lt;root-url&gt;/jenkins/webapp/job/sample-job/3641/display/redirect?page=changes}}
          New: mailer-plugin v1.23
          display-url-api v2.3.0
          blueocean-display-url v2.2.0
          jenkins-war v2.138.2 on jdk 1.8.0_192

          As per JENKINS-41578, I've set {{JENKINS_DISPLAYURL_PROVIDER=org.jenkinsci.plugins.displayurlapi.ClassicDisplayURLProvider}}

          On a failure email by the mailer plugin, the resulting email has the following URL
          {{http://&lt;root-url&gt;/jenkins/webapp/job/sample-job/3641/display/redirect?page=changes}}
          This causes the page to redirect to the Blueocean url instead of the Classic URL.

          Tran Huy added a comment -

          I have the same issue with Jenkins 2.204.2, even I already add the environment property, email from mailer plugin still returns Blue Ocean URL.

          Tran Huy added a comment - I have the same issue with Jenkins 2.204.2, even I already add the environment property, email from mailer plugin still returns Blue Ocean URL.
          Gavin Mogan made changes -
          Component/s New: display-url-api-plugin [ 21721 ]
          Component/s Original: mailer-plugin [ 17522 ]

            Unassigned Unassigned
            croydondias Croydon Dias
            Votes:
            2 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: