Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Direct url to the lastest details page of a build

I try to set up a public display on our department floor to present the current status of the Jenkin's maintained projects. Therefore I'm cycling through a session of Jenkins web pages like the Blue Ocean Pipeline overview or the detailed build history of particular pipelines.
Blue Ocean Pipeline Build History

Additionally I would like to show the detailed page of the last build step of a pipeline.
Build details of a pipeline

Unfortunately the url that is been called uses the build number which I don't have on my script side. Is there a way within Blue Ocean to call for the last detailed build page in depended of the build number. * instead of .../blue/organizations/jenkins/Playground_RTM/detail/Playground_RTM/112/pipeline * something like that .../blue/organizations/jenkins/Playground_RTM/detail/Playground_RTM/last/pipeline

Any ideas?

like image 452
Sebastian Pliefke Avatar asked Nov 19 '22 17:11

Sebastian Pliefke


1 Answers

I could not find a direct dynamic URL in the blue ocean for the last build.

If somebody is looking for providing a quick access link, they could provide link to activity page for a particular branch in blue ocean.

https://<host-name>/blue/organizations/jenkins/<job-name>/activity?branch=<branch-name>

Or provide the last build page URL for classic Jenkins by using the lastBuild keyword.

like image 124
Karthik P Avatar answered Nov 21 '22 07:11

Karthik P