-
New Feature
-
Resolution: Not A Defect
-
Minor
-
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.
adamdougal you can use RUN_DISPLAY_URL or JOB_DISPLAY_URL to point to the users preferred setting of UI - Blue Ocean or Classic