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

          Adam Dougal created issue -
          Adam Dougal made changes -
          Environment New: Jenkins 2.89.4
          Blue Ocean 1.4.0
          Labels New: blueocean

          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
          James Dumay made changes -
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

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

              Created:
              Updated:
              Resolved: