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

Duplicated changes when running a Workflow script from SCM

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • git-plugin, pipeline
    • None

      To re-produce the issue is quite easy:

      1. Create a workflow job with Definition Workflow script from SCM (with for example git@bitbucket.org:<ACCOUNT>/git-bitbucket.git) and then you specify a script Path flow-ci-dev.groovy with:

      node {
          stage 'checkout'
          git credentialsId: '', url: 'git@bitbucket.org:<ACCOUNT>/git-bitbucket.git'
      }
      

      2. Click to build the job

      You will see duplicated changes like the ones attached.

      Not sure if this is a duplicate of JENKINS-29326 or if the issue is in Workflow or the git-plugin directly.

          [JENKINS-31079] Duplicated changes when running a Workflow script from SCM

          Félix Belzunce Arcos created issue -
          Jesse Glick made changes -
          Link New: This issue duplicates JENKINS-29326 [ JENKINS-29326 ]
          Jesse Glick made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 166248 ] New: JNJira + In-Review [ 197953 ]
          Andrew Bayer made changes -
          Component/s New: pipeline-general [ 21692 ]
          Andrew Bayer made changes -
          Component/s Original: workflow-plugin [ 18820 ]
          Mark Waite made changes -
          Assignee Original: Mark Waite [ markewaite ]
          Mark Waite made changes -
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]

            Unassigned Unassigned
            fbelzunc Félix Belzunce Arcos
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: