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

Poll SCM and Timer triggers include "Changes" for a Pipeline for any/all Shared Libraries

    XMLWordPrintable

    Details

    • Similar Issues:
    • Sprint:
      Pipeline - July/August

      Description

      I noticed this while filing another ticket (JENKINS-41496), but the "Changes" view for the Pipeline run for this project "azure" has the "wrong commits" shown. See the screenshots for more.

      What basically appears to be happening is that any change to a Shared Library will result in newly triggered Pipelines which have "Poll SCM" configured. Pipelines which configure a timer will also have Changes from the Shared Library listed when it executes again.

      I think listing the Shared Library commits in "Changes" is acceptable, but triggering based on an SCM Poll for a Pipeline is very confusing behavior and IMHO incorrect behavior.

      As a shared tooling team, I would not expect my Shared Library changes to trigger a bunch of Pipelines for projects depending on them.

        Attachments

          Issue Links

            Activity

            rtyler R. Tyler Croy created issue -
            rtyler R. Tyler Croy made changes -
            Field Original Value New Value
            Attachment classic-changes-view.png [ 35641 ]
            Component/s pipeline [ 21692 ]
            Component/s blueocean-plugin [ 21481 ]
            Description I noticed this while filing another ticket (JENKINS-41496), but the "Changes" view for the Pipeline run for this project "azure" has the **wrong commits** shown. See the screenshots for more.

            I'm not sure why.
            I noticed this while filing another ticket (JENKINS-41496), but the "Changes" view for the Pipeline run for this project "azure" has the "wrong commits" shown. See the screenshots for more.


            What basically appears to be happening is that any change to a Shared Library will result in _newly_ triggered Pipelines which have "Poll SCM" configured. Pipelines which configure a timer will also have Changes from the Shared Library listed when it executes again.


            I think *listing* the Shared Library commits in "Changes" is acceptable, but *triggering* based on an SCM Poll for a Pipeline is very confusing behavior and IMHO incorrect behavior.

            As a shared tooling team, I would not expect my Shared Library changes to trigger a bunch of Pipelines for projects depending on them.
            Priority Major [ 3 ] Minor [ 4 ]
            Summary Blue Ocean "Changes" for a Pipeline are from the completely wrong repository Poll SCM and Timer triggers include "Changes" for a Pipeline for any/all Shared Libraries
            abayer Andrew Bayer made changes -
            Component/s workflow-cps-global-lib-plugin [ 21714 ]
            Component/s workflow-job-plugin [ 21716 ]
            Component/s workflow-scm-step-plugin [ 21717 ]
            Component/s pipeline [ 21692 ]
            jglick Jesse Glick made changes -
            Component/s workflow-job-plugin [ 21716 ]
            Component/s workflow-scm-step-plugin [ 21717 ]
            Issue Type Bug [ 1 ] Improvement [ 4 ]
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-41442 [ JENKINS-41442 ]
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-39615 [ JENKINS-39615 ]
            jglick Jesse Glick made changes -
            Link This issue is duplicated by JENKINS-39499 [ JENKINS-39499 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-42320 [ JENKINS-42320 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-38659 [ JENKINS-38659 ]
            hogarthj James Hogarth made changes -
            Issue Type Improvement [ 4 ] Bug [ 1 ]
            hogarthj James Hogarth made changes -
            Issue Type Bug [ 1 ] Improvement [ 4 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-42809 [ JENKINS-42809 ]
            casz Joseph Petersen (old) made changes -
            Remote Link This issue links to "PR 34 (Web Link)" [ 16918 ]
            jamesdumay James Dumay made changes -
            Labels cloudbees-internal-pipeline
            michaelneale Michael Neale made changes -
            Priority Minor [ 4 ] Major [ 3 ]
            michaelneale Michael Neale made changes -
            Sprint Pipeline - July/August [ 371 ]
            michaelneale Michael Neale made changes -
            Assignee Andrew Bayer [ abayer ]
            abayer Andrew Bayer made changes -
            Resolution Fixed [ 1 ]
            Status Open [ 1 ] Resolved [ 5 ]
            abayer Andrew Bayer made changes -
            Link This issue is duplicated by JENKINS-45133 [ JENKINS-45133 ]
            giorgiosironi Giorgio Sironi made changes -
            Attachment global-pipeline-configuration.png [ 39811 ]
            Attachment triggered-build-log.png [ 39812 ]
            abayer Andrew Bayer made changes -
            Link This issue is duplicated by JENKINS-42320 [ JENKINS-42320 ]
            abayer Andrew Bayer made changes -
            Link This issue is duplicated by JENKINS-42067 [ JENKINS-42067 ]
            doronshai Doron Shai made changes -
            Resolution Fixed [ 1 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            doronshai Doron Shai made changes -
            Comment [ I see this issue again on plugin 2.9 and Jenkins 2.107.2.

            Does someone knows if this can be solved somehow?  ]
            unlikelyzero John Hill made changes -
            Comment [ This is a pretty significant issue. We've removed our Global Pipeline Library config, restarted jenkins and it's still triggering events ]
            hjink94 Harrison Kim made changes -
            Attachment image-2019-04-08-13-45-36-893.png [ 46656 ]
            abayer Andrew Bayer made changes -
            Assignee Andrew Bayer [ abayer ]
            mcascone Max Cascone made changes -
            Link This issue relates to JENKINS-65649 [ JENKINS-65649 ]

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              rtyler R. Tyler Croy
              Votes:
              85 Vote for this issue
              Watchers:
              94 Start watching this issue

                Dates

                Created:
                Updated: