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

SCM - Cloning multiple git repositories in parallel causes same change multiple times in pipeline job

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • git-plugin
    • None
    • Jenkins 2.32.2

      Build page contain same change list multiple times, when using parallel in pipeline.

      parallel (
          "test1" : {
                checkout([
                          $class: 'GitSCM',
                              branches: [[
                                  name: 'master'
                              ]],
                              doGenerateSubmoduleConfigurations: false,
                              extensions: [[
                                  $class: 'RelativeTargetDirectory',
                                  relativeTargetDir: 'test1'
                              ],[
                                  $class: 'ScmName',
                                  name: 'test1'
                              ]],
                              submoduleCfg: [],
                              userRemoteConfigs: [[
                                  credentialsId: 'test',
                                  url: 'ssh://git@github.com/test1'
                              ]]
                      ])
          },
          "test2" : {
                checkout([
                          $class: 'GitSCM',
                              branches: [[
                                  name: 'master'
                              ]],
                              doGenerateSubmoduleConfigurations: false,
                              extensions: [[
                                  $class: 'RelativeTargetDirectory',
                                  relativeTargetDir: 'test2'
                              ],[
                                  $class: 'ScmName',
                                  name: 'test2'
                              ]],
                              submoduleCfg: [],
                              userRemoteConfigs: [[
                                  credentialsId: 'test',
                                  url: 'ssh://git@github.com/test2'
                              ]]
                      ])
           },
          "test3" : {
                checkout([
                          $class: 'GitSCM',
                              branches: [[
                                  name: 'master'
                              ]],
                              doGenerateSubmoduleConfigurations: false,
                              extensions: [[
                                  $class: 'RelativeTargetDirectory',
                                  relativeTargetDir: 'test3'
                              ],[
                                  $class: 'ScmName',
                                  name: 'test3'
                              ]],
                              submoduleCfg: [],
                              userRemoteConfigs: [[
                                  credentialsId: 'test',
                                  url: 'ssh://git@github.com/test3'
                              ]]
                      ])
           }
       )
      

          [JENKINS-41830] SCM - Cloning multiple git repositories in parallel causes same change multiple times in pipeline job

          mishal shah created issue -
          mishal shah made changes -
          Description Original: Build page contain same change list multiple times, when using parallel in pipeline.

          {code:java}
          ```
          parallel (
              "test1" : {
                    checkout([
                              $class: 'GitSCM',
                                  branches: [[
                                      name: 'master'
                                  ]],
                                  doGenerateSubmoduleConfigurations: false,
                                  extensions: [[
                                      $class: 'RelativeTargetDirectory',
                                      relativeTargetDir: 'test1'
                                  ],[
                                      $class: 'ScmName',
                                      name: 'test1'
                                  ]],
                                  submoduleCfg: [],
                                  userRemoteConfigs: [[
                                      credentialsId: 'test',
                                      url: 'ssh://git@github.com/test1'
                                  ]]
                          ])
              },
              "test2" : {
                    checkout([
                              $class: 'GitSCM',
                                  branches: [[
                                      name: 'master'
                                  ]],
                                  doGenerateSubmoduleConfigurations: false,
                                  extensions: [[
                                      $class: 'RelativeTargetDirectory',
                                      relativeTargetDir: 'test2'
                                  ],[
                                      $class: 'ScmName',
                                      name: 'test2'
                                  ]],
                                  submoduleCfg: [],
                                  userRemoteConfigs: [[
                                      credentialsId: 'test',
                                      url: 'ssh://git@github.com/test2'
                                  ]]
                          ])
               },
              "test3" : {
                    checkout([
                              $class: 'GitSCM',
                                  branches: [[
                                      name: 'master'
                                  ]],
                                  doGenerateSubmoduleConfigurations: false,
                                  extensions: [[
                                      $class: 'RelativeTargetDirectory',
                                      relativeTargetDir: 'test3'
                                  ],[
                                      $class: 'ScmName',
                                      name: 'test3'
                                  ]],
                                  submoduleCfg: [],
                                  userRemoteConfigs: [[
                                      credentialsId: 'test',
                                      url: 'ssh://git@github.com/test3'
                                  ]]
                          ])
               }
           )
          {code}
          New: Build page contain same change list multiple times, when using parallel in pipeline.

          {code:java}
          parallel (
              "test1" : {
                    checkout([
                              $class: 'GitSCM',
                                  branches: [[
                                      name: 'master'
                                  ]],
                                  doGenerateSubmoduleConfigurations: false,
                                  extensions: [[
                                      $class: 'RelativeTargetDirectory',
                                      relativeTargetDir: 'test1'
                                  ],[
                                      $class: 'ScmName',
                                      name: 'test1'
                                  ]],
                                  submoduleCfg: [],
                                  userRemoteConfigs: [[
                                      credentialsId: 'test',
                                      url: 'ssh://git@github.com/test1'
                                  ]]
                          ])
              },
              "test2" : {
                    checkout([
                              $class: 'GitSCM',
                                  branches: [[
                                      name: 'master'
                                  ]],
                                  doGenerateSubmoduleConfigurations: false,
                                  extensions: [[
                                      $class: 'RelativeTargetDirectory',
                                      relativeTargetDir: 'test2'
                                  ],[
                                      $class: 'ScmName',
                                      name: 'test2'
                                  ]],
                                  submoduleCfg: [],
                                  userRemoteConfigs: [[
                                      credentialsId: 'test',
                                      url: 'ssh://git@github.com/test2'
                                  ]]
                          ])
               },
              "test3" : {
                    checkout([
                              $class: 'GitSCM',
                                  branches: [[
                                      name: 'master'
                                  ]],
                                  doGenerateSubmoduleConfigurations: false,
                                  extensions: [[
                                      $class: 'RelativeTargetDirectory',
                                      relativeTargetDir: 'test3'
                                  ],[
                                      $class: 'ScmName',
                                      name: 'test3'
                                  ]],
                                  submoduleCfg: [],
                                  userRemoteConfigs: [[
                                      credentialsId: 'test',
                                      url: 'ssh://git@github.com/test3'
                                  ]]
                          ])
               }
           )
          {code}
          mishal shah made changes -
          Attachment New: Screen Shot 2017-02-09 at 5.06.22 PM.png [ 35868 ]
          mishal shah made changes -
          Component/s New: git-plugin [ 15543 ]
          mishal shah made changes -
          Component/s Original: git-changelog-plugin [ 20855 ]
          Stephen Connolly made changes -
          Link New: This issue relates to JENKINS-35475 [ JENKINS-35475 ]
          Stephen Connolly made changes -
          Resolution New: Duplicate [ 3 ]
          Status Original: Open [ 1 ] New: Closed [ 6 ]
          mishal shah made changes -
          Resolution Original: Duplicate [ 3 ]
          Status Original: Closed [ 6 ] New: Reopened [ 4 ]
          Mark Waite made changes -
          Status Original: Reopened [ 4 ] New: Open [ 1 ]
          Mark Waite made changes -
          Assignee Original: Paul Wellner Bou [ paulwellnerbou ]

            Unassigned Unassigned
            shahmishal mishal shah
            Votes:
            5 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: