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

Loading a script with the fromGit method causes job to run when that repo is pushed to

      I have a job that uses a Jenkinsfile from SCM and is triggered by pushes to github. This Jenkinsfile uses the pipeline remote loader plugin to load a shared library from a different git repo.

      When changes are pushed to either repo, the job is triggered. This is undesirable behavior. Repositories used by the remote loader plugin should NOT cause jobs to trigger when pushed to. Or, at the very least, this should be an option that can be passed in (like polling=false with the normal git step).

          [JENKINS-39120] Loading a script with the fromGit method causes job to run when that repo is pushed to

          Oleg Nenashev added a comment -

          Well, likely it's a regression due to https://github.com/jenkinsci/workflow-remote-loader-plugin/pull/9.
          A workaround would be to use the new library features available in Pipeline

          Oleg Nenashev added a comment - Well, likely it's a regression due to https://github.com/jenkinsci/workflow-remote-loader-plugin/pull/9 . A workaround would be to use the new library features available in Pipeline

          Tianon Gravi added a comment -

          Could this take advantage of the new "load file directly without checkout" functionality that pipelines have with the "lightweight checkout" option now?

          Tianon Gravi added a comment - Could this take advantage of the new "load file directly without checkout" functionality that pipelines have with the "lightweight checkout" option now?

          Adam Gabryś added a comment -

          Hi, Is there any chance that this problem would be fixed? I see the last change in the source code was a year ago. I wonder if I should look for alternatives.

          Adam Gabryś added a comment - Hi, Is there any chance that this problem would be fixed? I see the last change in the source code was a year ago. I wonder if I should look for alternatives.

          Mark Waite added a comment -

          The Pipeline: Groovy Libraries plugin replaces this plugin. The Pipeline shared libraries section of the Jenkins User Handbook describes the Pipeline: Groovy Libraries plugin in detail.

          This won't be fixed.

          Mark Waite added a comment - The Pipeline: Groovy Libraries plugin replaces this plugin . The Pipeline shared libraries section of the Jenkins User Handbook describes the Pipeline: Groovy Libraries plugin in detail. This won't be fixed.

            escoem Emilio Escobar
            jacobfike Jacob Fike
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: