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

Triggered builds section not displaying intermittently since upgrading to blue ocean 1.17

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: In Review (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: blueocean-plugin
    • Labels:
      None
    • Environment:
      Jenkins 2.176.2.3
      Blue ocean 1.17.0
      Groovy pipeline
    • Similar Issues:

      Description

      I have encountered an issue that severely limits the usability of the BlueOcean plugin when used with downstream jobs.

       

      When triggering a downstream job BlueOcean normally displays the following section with a link to the downstream job, as introduced in JENKINS-38339

      However, after upgrading to BlueOcean 1.17 this behaviour seems to have regressed:

      There are a lot of comments on the original ticket JENKINS-38339 listing the same issue.

      I am aware that this was once an issue for declarative pipelines and fixed as part of https://github.com/jenkinsci/blueocean-plugin/pull/1918/files

      But I am running legacy groovy pipeline.

       

      It is important to note that this does not always happen: sometimes a run will show the link, then when the exact same run is re-ran again it fails to show.

      I have found this issue with both sequential and parallel pipelines where jobs are kicked off.

        Attachments

          Issue Links

            Activity

            Hide
            felipecassiors Felipe Santos added a comment -

            Just wanted to mention that this issue is still happening with Blue Ocean 1.25.1 and Pipeline Build Step 2.15.

            Show
            felipecassiors Felipe Santos added a comment - Just wanted to mention that this issue is still happening with Blue Ocean 1.25.1 and Pipeline Build Step 2.15.
            Hide
            jonathand131 Jonathan Delizy added a comment -

            Hi,

            Following some plugins update, the call currentBuild.getBuildCauses('hudson.model.Cause$UpstreamCause') in my pipeline groovy script doesn't return the expected values anymore, but it works if I replace it with currentBuild.getBuildCauses('org.jenkinsci.plugins.workflow.support.steps.build.BuildUpstreamCause').

             

            I suspect it is due to changes made in PR#54.

            Perhaps getBuildCauses filtering should be changed to also include causes that are subclasses of the given type.

            Show
            jonathand131 Jonathan Delizy added a comment - Hi, Following some plugins update, the call currentBuild.getBuildCauses('hudson.model.Cause$UpstreamCause') in my pipeline groovy script doesn't return the expected values anymore, but it works if I replace it with currentBuild.getBuildCauses('org.jenkinsci.plugins.workflow.support.steps.build.BuildUpstreamCause') .   I suspect it is due to changes made in PR#54 . Perhaps getBuildCauses filtering should be changed to also include causes that are subclasses of the given type.
            Show
            allan_burdajewicz Allan BURDAJEWICZ added a comment - This is being reviewed: https://github.com/jenkinsci/pipeline-build-step-plugin/pull/54 https://github.com/jenkinsci/blueocean-plugin/pull/2187 https://github.com/jenkinsci/blueocean-plugin/pull/2188 (backport to 1.24)
            Hide
            insulind Dave Quinn added a comment -

            Any movement on getting this fixed?

            Show
            insulind Dave Quinn added a comment - Any movement on getting this fixed?
            Hide
            eliminator Eli Entelis added a comment -

            I experiance the same problem, is there an estimation when this will be fixed?

            Show
            eliminator Eli Entelis added a comment - I experiance the same problem, is there an estimation when this will be fixed?
            Hide
            peterwallerarm Peter Waller added a comment -

             A few observations:

            • The links seem to be missing in particular if there is any failing build within the whole pipeline.
            • The source data exists on disk in the jenkins XML database, so I believe this is a presentation bug.
            • Stuart Rowe did some additional investigation in this other ticket, and seems to have come close to localizing the bug.
            Show
            peterwallerarm Peter Waller added a comment -  A few observations: The links seem to be missing in particular if there is any failing build within the whole pipeline. The source data exists on disk in the jenkins XML database, so I believe this is a presentation bug. Stuart Rowe did some additional investigation  in this other ticket , and seems to have come close to localizing the bug.
            Hide
            roalter Luis Roalter added a comment -

            Looks the same here. But not for all builds. Old builds (before upgrading) still show the triggered build sections.

            Show
            roalter Luis Roalter added a comment - Looks the same here. But not for all builds. Old builds (before upgrading) still show the triggered build sections.

              People

              Assignee:
              vlatombe Vincent Latombe
              Reporter:
              ryanstewart456 Ryan Stewart
              Votes:
              18 Vote for this issue
              Watchers:
              18 Start watching this issue

                Dates

                Created:
                Updated: