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

RepoScm changelog hang when used with pipeline

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: repo-plugin
    • Labels:
      None
    • Environment:
    • Similar Issues:

      Description

      Reference groovy:

      stage 'evaluate'
      
      def repoSync(fullClean, fullReset, manifestRepo, manifestRev, manifestPath){
          checkout changelog: true, poll: false, scm: [$class: 'RepoScm', currentBranch: true, \
              forceSync: true, jobs: 4, manifestBranch: manifestRev, \
              manifestFile: manifestPath, manifestRepositoryUrl: manifestRepo, \
              quiet: false, resetFirst: fullClean, resetFirst: fullReset]
      }
      
      node("your-node"){
          repoSync(true, true, "ssh://your/manifest.git", "master", "default.xml")
      }
      echo "We are all done here"
      

      Running the above job it will hang during (what I think is) the changelog generation stage. This is what the output looks like:

      Manifest at revision: c70cc785a99960ea7bbb520229a3722c7def7436
      [jenkins-utils] $ git log --raw --first-parent --format="[[<as7d9m1R_MARK_A>]]%H[[<as7d9m1R_MARK_B>]%an[[<as7d9m1R_MARK_B>]%ae[[<as7d9m1R_MARK_B>]%aD[[<as7d9m1R_MARK_B>]%cn[[<as7d9m1R_MARK_B>]%ce[[<as7d9m1R_MARK_B>]%cD[[<as7d9m1R_MARK_B>]%s
      %b[[<as7d9m1R_MARK_B>]" 8d46c2540033746b6e62ab1fab770d03cf486d09..25a4b080c38dfc68cfbcd2827d2f1ec31eece28d
      Aborted by Andres Rodriguez
      Click here to forcibly terminate running steps
      Terminating checkout
      [Pipeline] } //node
      [Pipeline] Allocate node : End
      [Pipeline] End of Pipeline
      Finished: ABORTED
      

      If the job is triggered using 'Build Now' without any changes going into the repository the hang does not occur.
      If I set changelog: false in the above code the hang does not occur.

        Attachments

          Activity

          Hide
          lostgoat Andres Rodriguez added a comment -

          Thread dump:

          Thread #2
          at DSL.checkout(Native Method)
          at WorkflowScript.repoSync(WorkflowScript:34)
          at WorkflowScript.run(WorkflowScript:43)
          at DSL.node(Native Method)
          at WorkflowScript.run(WorkflowScript:41)

          Show
          lostgoat Andres Rodriguez added a comment - Thread dump: Thread #2 at DSL.checkout(Native Method) at WorkflowScript.repoSync(WorkflowScript:34) at WorkflowScript.run(WorkflowScript:43) at DSL.node(Native Method) at WorkflowScript.run(WorkflowScript:41)
          Show
          maksonlee Makson Lee added a comment - https://github.com/jenkinsci/repo-plugin/pull/34

            People

            • Assignee:
              maksonlee Makson Lee
              Reporter:
              lostgoat Andres Rodriguez
            • Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: