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

RepoScm changelog hang when used with pipeline

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • repo-plugin
    • None

      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.

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

              Created:
              Updated:
              Resolved: