-
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.
[JENKINS-49605] Add BLUE_OCEAN_BUILD_URL environment variable to builds
Environment |
New:
Jenkins 2.89.4 Blue Ocean 1.4.0 |
|
Labels | New: blueocean |
Resolution | New: Not A Defect [ 7 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
adamdougal you can use RUN_DISPLAY_URL or JOB_DISPLAY_URL to point to the users preferred setting of UI - Blue Ocean or Classic