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

Show "latest" run results via fixed URL (dashboard like feature)

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Minor Minor
    • blueocean-plugin
    • None

      As a team using blue ocean, we would like to be able to put up a specific pipeline (including branch) on a shared dashboard (call it a wallboard) monitor in an office.

      This should always show the "latest" running or completed run of a pipeline.
      This can be the same as the current pipeline results screen but instead of a run number has '/latest' in the URI. When a new run starts, it follows along.

      A decision needs to be made as to what to do when there are concurrent builds going on (there could be some indicator that there are other builds going on, but this shows latest).

      IN any case, this shouldn't be a departure from the normal results screen other than in the URI and the fact that it autorefreshes to show the latest, and can be used on a shared monitor.

      (request via a few user interviews)

      In Scope:

      • Show /latest running (by run number - ie latest one is always reflected on screen) with auto refresh on results screen
      • Show /lastSuccessful
      • Show /lastCompleted
      • Show /lastFailure
      • Show visual indication that there are other concurrent builds happening

      Out of scope:

      • Showing more than one pipeline running at a time on the one screen

          [JENKINS-41088] Show "latest" run results via fixed URL (dashboard like feature)

          This currently blocks us on using blue ocean in any case. We need a build monitor in the new style.

          Benjamin Brandmeier added a comment - This currently blocks us on using blue ocean in any case. We need a build monitor in the new style.

          Matt Fanning added a comment -

          We were looking to move to using the blue ocean UI for our teams big screen for our main project, just need it to support showing the latest pipeline from a single URL so we don't have to manually go view the latest build.

          Matt Fanning added a comment - We were looking to move to using the blue ocean UI for our teams big screen for our main project, just need it to support showing the latest pipeline from a single URL so we don't have to manually go view the latest build.

          Michael Neale added a comment -

          Good to see interest in this. I don't see this landing in the next month though unless someone wants to pick it up.

          Michael Neale added a comment - Good to see interest in this. I don't see this landing in the next month though unless someone wants to pick it up.

          I've been looking for this as well, along with someone who just asked me about it at the Open Source booth at Jenkins World.

          In my case, I didn't need it for a dashboard, but in order to link to the Artifacts tab, of the latest successful build.

          Christopher Orr added a comment - I've been looking for this as well, along with someone who just asked me about it at the Open Source booth at Jenkins World. In my case, I didn't need it for a dashboard, but in order to link to the Artifacts tab, of the latest successful build.

          Ben Covi added a comment - - edited

          Would really like this to happen.  Seems like a small feature, but would be very useful.  It's actually a bit of a regression from the vanilla UI, where "lastBuild" functions in place of a build number in URLs.

          Ben Covi added a comment - - edited Would really like this to happen.  Seems like a small feature, but would be very useful.  It's actually a bit of a regression from the vanilla UI, where "lastBuild" functions in place of a build number in URLs.

          Karl Wirth added a comment -

          Pinging this to keep it fresh. I spend a lot of my time tweaking scripts and looking at 'lastBuild' results in vanilla Jenkins. I really miss this in Blue Ocean.

          Karl Wirth added a comment - Pinging this to keep it fresh. I spend a lot of my time tweaking scripts and looking at 'lastBuild' results in vanilla Jenkins. I really miss this in Blue Ocean.

          I think the behaviour you want can be achieved with a link formatted like this: https://jenkins.example.org/job/folder_name/job/the_job_name/job/master/lastBuild/display/redirect/

          Robin Björklin added a comment - I think the behaviour you want can be achieved with a link formatted like this: https://jenkins.example.org/job/folder_name/job/the_job_name/job/master/lastBuild/display/redirect/

          Karl Wirth added a comment -

          Hi rbjorklin - I couldnt figure out how to translate mine. For example a working link to execution 8 (last) of the job:

          http://jenkins-server:8080/blue/organizations/jenkins/DockerFreeStyle/detail/DockerFreeStyle/8/pipeline
          

          I've tried different combination of your URL with only 404 errors. For example:

          http://jenkins-server:8080/blue/organizations/jenkins/DockerFreeStyle/job/master/lastBuild/display/redirect
          
          http://jenkins-server:8080/blue/organizations/jenkins/DockerFreeStyle/detail/DockerFreeStyle/job/master/lastBuild/display/redirect
          
          

          Karl Wirth added a comment - Hi rbjorklin - I couldnt figure out how to translate mine. For example a working link to execution 8 (last) of the job: http: //jenkins-server:8080/blue/organizations/jenkins/DockerFreeStyle/detail/DockerFreeStyle/8/pipeline I've tried different combination of your URL with only 404 errors. For example: http: //jenkins-server:8080/blue/organizations/jenkins/DockerFreeStyle/job/master/lastBuild/display/redirect http: //jenkins-server:8080/blue/organizations/jenkins/DockerFreeStyle/detail/DockerFreeStyle/job/master/lastBuild/display/redirect

          Hi p4karl! Sorry about the confusion I should have given clearer instructions.

          The link example I provided above is to the classic view but will redirect to Blue Ocean. If your build does not reside within a folder this should do the trick: http://jenkins-server:8080/job/DockerFreeStyle/job/master/lastBuild/display/redirect/

          I have only tested this for multibranch pipeline builds and I would guess it will behave differently if you're using free style builds.

          Robin Björklin added a comment - Hi p4karl ! Sorry about the confusion I should have given clearer instructions. The link example I provided above is to the classic view but will redirect to Blue Ocean. If your build does not reside within a folder this should do the trick: http://jenkins-server:8080/job/DockerFreeStyle/job/master/lastBuild/display/redirect/ I have only tested this for multibranch pipeline builds and I would guess it will behave differently if you're using free style builds.

          I got this url to work, however it does not solve the problem described in the issue. This url will redirect once, but the goal for me is the have a url that does not redirect to a static url. I need a url that that will refresh whenever new commits are pushed to the branch used in the url.
           
          My use case is to have a public display that shows up to date CI/pipeline status of HEAD of master without user intervention. With the proposed url I can achieve this, but not without constant ui flashing caused by host side reloading of the url.
           

          Mathias Nedrebø added a comment - I got this url to work, however it does not solve the problem described in the issue. This url will redirect once, but the goal for me is the have a url that does not redirect to a static url. I need a url that that will refresh whenever new commits are pushed to the branch used in the url.   My use case is to have a public display that shows up to date CI/pipeline status of HEAD of master without user intervention. With the proposed url I can achieve this, but not without constant ui flashing caused by host side reloading of the url.  

            Unassigned Unassigned
            michaelneale Michael Neale
            Votes:
            25 Vote for this issue
            Watchers:
            22 Start watching this issue

              Created:
              Updated: