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

Add BLUE_OCEAN_BUILD_URL environment variable to builds

    • Icon: New Feature New Feature
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • blueocean-plugin
    • Jenkins 2.89.4
      Blue Ocean 1.4.0

      When a build fails we'd like to send a slack notification containing a link to the Blue Ocean view of the job.

      We can construct this using the existing environment variables:

      BLUE_OCEAN_BUILD_URL = $HUDSON_URL + "blue/organizations/jenkins/" + urlEncoded($JOB_NAME) + "/detail/" + $JOB_BASE_NAME + "/" + $BUILD_NUMBER
      

      But obviously this may break if Blue Ocean changes it's urls.

          [JENKINS-49605] Add BLUE_OCEAN_BUILD_URL environment variable to builds

          James Dumay added a comment -

          adamdougal you can use RUN_DISPLAY_URL or JOB_DISPLAY_URL to point to the users preferred setting of UI - Blue Ocean or Classic

          James Dumay added a comment - adamdougal you can use RUN_DISPLAY_URL or JOB_DISPLAY_URL to point to the users preferred setting of UI - Blue Ocean or Classic

            Unassigned Unassigned
            adamdougal Adam Dougal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: