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

PROJECT_URL variable not correctly set when email is sent by Promoted Build Plugin

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • promoted-builds-plugin
    • None
    • Hudson 1.365, Java 1.6

      The email-ext plugin makes the PROJECT_URL environment variable available to be sent via emails. It seems to work fine for standard projects. However if the email-ext plugin is used in coordination with Promoted Builds, the actual URL value constructed by the email-ext plugin in the hudson.plugins.emailext.plugins.content.ProjectURLContent is not correct. Not sure if this is caused by the email-ext plugin or if the build number of the project is not passwed down to the email-ext correctly. The PROJECT_URL seems to be missing the actual build number in it. For example :

      Good URL : http://myhost.com/hudson/job/MY_JOB_NAME/promotion/BUILDNUM/PROMOTION_PROCESSNAME/

      Bad URL being generated : http://myhost.com/hudson/job/MY_JOB_NAME/promotion//PROMOTION_PROCESSNAME/

      Note the actual build number represented by "BUILDNUM" is missing so that 2 slashes are used instead.

          [JENKINS-6922] PROJECT_URL variable not correctly set when email is sent by Promoted Build Plugin

          adammyatt created issue -
          Alan Harder made changes -
          Component/s New: promoted-builds [ 15567 ]
          Peter Hayes made changes -
          Assignee New: Peter Hayes [ petehayes ]
          Peter Hayes made changes -
          Link New: This issue duplicates JENKINS-8577 [ JENKINS-8577 ]
          Peter Hayes made changes -
          Link New: This issue duplicates JENKINS-7636 [ JENKINS-7636 ]
          OHTAKE Tomohiro made changes -
          Link New: This issue is duplicated by JENKINS-8961 [ JENKINS-8961 ]
          OHTAKE Tomohiro made changes -
          Link New: This issue is duplicated by JENKINS-8577 [ JENKINS-8577 ]
          OHTAKE Tomohiro made changes -
          Link Original: This issue duplicates JENKINS-8577 [ JENKINS-8577 ]
          Alex Earl made changes -
          Component/s Original: email-ext [ 15538 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 137019 ] New: JNJira + In-Review [ 174626 ]

            petehayes Peter Hayes
            adammyatt adammyatt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: