-
Bug
-
Resolution: Fixed
-
Major
-
None
-
Jenkins version: 1.655
Plugins:
ws-cleanup 0.28 true false
workflow-support 1.15 true false
workflow-step-api 1.15 true false
workflow-scm-step 1.15 true false
workflow-job 1.15 true false
workflow-durable-task-step 1.15 true false
workflow-cps-global-lib 1.15 true false
workflow-cps 1.15 true false
workflow-basic-steps 1.15 true false
workflow-api 1.15 true false
workflow-aggregator 1.15 true false
windows-slaves 1.1 true true
translation 1.12 true true
token-macro 1.12.1 true false
test-results-analyzer 0.3.4 true false
subversion 2.5.7 true true
ssh-slaves 1.10 true true
ssh-credentials 1.11 true true
script-security 1.17 true true
scm-api 1.1 true false
repo 1.10.0 true false
rebuild 1.25 true false
plain-credentials 1.1 true false
pipeline-stage-view 1.0 true false
pipeline-rest-api 1.0 true false
phabricator-plugin 1.9.2 true false
parameterized-trigger 2.30 true false
pam-auth 1.2 true true
multi-slave-config-plugin 1.2.0 true false
momentjs 1.1.1 true false
maven-plugin 2.12.1 true true
matrix-project 1.6 true true
matrix-auth 1.3.2 true true
mapdb-api 1.0.6.0 true false
mailer 1.16 true true
lockable-resources 1.7 true false
ldap 1.11 true false
junit 1.11 true true
jquery-detached 1.2.1 true false
jquery 1.11.2-0 true false
jobConfigHistory 2.13 true false
javadoc 1.3 true true
icon-shim 2.0.3 true false
handlebars 1.1.1 true false
git-server 1.6 true false
git-client 1.19.6 true false
git 2.4.4 true false
gerrit-trigger 2.18.4 true false
external-monitor-job 1.4 true false
envinject 1.92.1 true false
durable-task 1.9 true false
docker-workflow 1.4 true false
docker-plugin 0.16.0 true false
docker-commons 1.3.1 true false
cvs 2.12 true true
credentials-binding 1.7 true false
credentials 1.26 true true
copyartifact 1.37 true false
authentication-tokens 1.2 true false
antisamy-markup-formatter 1.3 true true
ant 1.2 true false
ace-editor 1.1 true falseJenkins version: 1.655 Plugins: ws-cleanup 0.28 true false workflow-support 1.15 true false workflow-step-api 1.15 true false workflow-scm-step 1.15 true false workflow-job 1.15 true false workflow-durable-task-step 1.15 true false workflow-cps-global-lib 1.15 true false workflow-cps 1.15 true false workflow-basic-steps 1.15 true false workflow-api 1.15 true false workflow-aggregator 1.15 true false windows-slaves 1.1 true true translation 1.12 true true token-macro 1.12.1 true false test-results-analyzer 0.3.4 true false subversion 2.5.7 true true ssh-slaves 1.10 true true ssh-credentials 1.11 true true script-security 1.17 true true scm-api 1.1 true false repo 1.10.0 true false rebuild 1.25 true false plain-credentials 1.1 true false pipeline-stage-view 1.0 true false pipeline-rest-api 1.0 true false phabricator-plugin 1.9.2 true false parameterized-trigger 2.30 true false pam-auth 1.2 true true multi-slave-config-plugin 1.2.0 true false momentjs 1.1.1 true false maven-plugin 2.12.1 true true matrix-project 1.6 true true matrix-auth 1.3.2 true true mapdb-api 1.0.6.0 true false mailer 1.16 true true lockable-resources 1.7 true false ldap 1.11 true false junit 1.11 true true jquery-detached 1.2.1 true false jquery 1.11.2-0 true false jobConfigHistory 2.13 true false javadoc 1.3 true true icon-shim 2.0.3 true false handlebars 1.1.1 true false git-server 1.6 true false git-client 1.19.6 true false git 2.4.4 true false gerrit-trigger 2.18.4 true false external-monitor-job 1.4 true false envinject 1.92.1 true false durable-task 1.9 true false docker-workflow 1.4 true false docker-plugin 0.16.0 true false docker-commons 1.3.1 true false cvs 2.12 true true credentials-binding 1.7 true false credentials 1.26 true true copyartifact 1.37 true false authentication-tokens 1.2 true false antisamy-markup-formatter 1.3 true true ant 1.2 true false ace-editor 1.1 true false
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.