JOB_URL environment variable in a promotion script has value:
      http://hudson.host:8080/job/<JOB>/promotion//<PROMOTION>/
      This link is broken.
      JOB_URL should point to a main promotion page so as:

      • ${JOB_URL}api/ - entry point to the promotion remote API.
      • ${JOB_URL}23/ - link to the promotion execution 23.

      JOB_URL is useful for accessing remote API and retrieving of artifacts.

          [JENKINS-8961] JOB_URL is broken for a promotion

          You can use PROMOTED_URL variable.
          You can also use PROMOTED_JOB_NAME, PROMOTED_NUMBER and PROMOTED_ID to get original values.

          OHTAKE Tomohiro added a comment - You can use PROMOTED_URL variable. You can also use PROMOTED_JOB_NAME, PROMOTED_NUMBER and PROMOTED_ID to get original values.

          PROMOTED_URL, PROMOTED_JOB_NAME, PROMOTED_NUMBER and PROMOTED_ID point to the promoted build/job.
          JOB_URL within the promotion points (should) to the promoting process. Which have its own results, artifacts and API calls.

          But it's possible to assembly the right promotion JOB_URL from JENKINS_URL, PROMOTED_JOB_NAME and the known promotion name. As a workaround.

          Kirill Evstigneev added a comment - PROMOTED_URL, PROMOTED_JOB_NAME, PROMOTED_NUMBER and PROMOTED_ID point to the promoted build/job. JOB_URL within the promotion points (should) to the promoting process. Which have its own results, artifacts and API calls. But it's possible to assembly the right promotion JOB_URL from JENKINS_URL, PROMOTED_JOB_NAME and the known promotion name. As a workaround.

          Sorry about my misreading.
          URL in JOB_URL variable does not point to valid location.

          OHTAKE Tomohiro added a comment - Sorry about my misreading. URL in JOB_URL variable does not point to valid location.

            Unassigned Unassigned
            kirill_evstigneev Kirill Evstigneev
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: