Discussion:
Jenkins Pipeline: hang on withEnv
Allen Fisher
2017-06-20 15:44:05 UTC
Permalink
Hi All--

I tried to update to 2.46.3 today and for various reasons had to downgrade
back to 2.32.3. After the rollback, which was accomplished by restoring to
a VM snapshot, all my pipeline builds that use Gradle hang right after the
build finishes, and the build has to be force killed. From the log:


BUILD SUCCESSFUL

Total time: 1 mins 3.171 secs

This build could be faster, please consider using the Gradle Daemon: https://docs.gradle.org/2.14.1/userguide/gradle_daemon.html

Aborted by unknown <http://edprjenkins01.helpsystems.com:8080/user/unknown>

Click here to forcibly terminate running steps

Terminating withEnv

Click here to forcibly kill entire build

Hard kill!

Finished: ABORTED


Here's my code:

stage('Build File'){
checkout([$class: 'GitSCM', branches: [[name: '*/master']],
doGenerateSubmoduleConfigurations: false, extensions: [], gitTool: 'Default',
submoduleCfg: [], userRemoteConfigs: [[credentialsId: '
9751a73d-c430-4f9c-9de5-4211f3be7c1d', url: '
***@gitlab.mydomain.com:myproduct/foo.git']]])
tool name: 'gradle214', type: 'gradle'
sh "echo Starting Build..."
withEnv(["PATH+GRADLE=${tool 'gradle214'}/bin"]){
sh "gradle all -DisQUABuild=${isQUABuild}"
}
sh "echo ending build..." //never gets to this sh call!

Any suggestions on what to troubleshoot? This is a linux build machine.
I've tried restarting Jenkins, the build box, everything and I'm still
hanging.

Thanks!

Allen
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/1b723933-420a-41f5-8044-8d7bb0513bbe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Allen Fisher
2017-06-20 16:18:21 UTC
Permalink
This is weird... I added another debugging echo statement right below the
sh "gradle all -D..." This made my hanging builds no longer hang.

Allen
Post by Allen Fisher
Hi All--
I tried to update to 2.46.3 today and for various reasons had to downgrade
back to 2.32.3. After the rollback, which was accomplished by restoring to
a VM snapshot, all my pipeline builds that use Gradle hang right after the
BUILD SUCCESSFUL
Total time: 1 mins 3.171 secs
This build could be faster, please consider using the Gradle Daemon: https://docs.gradle.org/2.14.1/userguide/gradle_daemon.html
Aborted by unknown <http://edprjenkins01.helpsystems.com:8080/user/unknown>
Click here to forcibly terminate running steps
Terminating withEnv
Click here to forcibly kill entire build
Hard kill!
Finished: ABORTED
stage('Build File'){
checkout([$class: 'GitSCM', branches: [[name: '*/master']],
doGenerateSubmoduleConfigurations: false, extensions: [], gitTool: '
Default', submoduleCfg: [], userRemoteConfigs: [[credentialsId: '
9751a73d-c430-4f9c-9de5-4211f3be7c1d', url: '
tool name: 'gradle214', type: 'gradle'
sh "echo Starting Build..."
withEnv(["PATH+GRADLE=${tool 'gradle214'}/bin"]){
sh "gradle all -DisQUABuild=${isQUABuild}"
}
sh "echo ending build..." //never gets to this sh call!
Any suggestions on what to troubleshoot? This is a linux build machine.
I've tried restarting Jenkins, the build box, everything and I'm still
hanging.
Thanks!
Allen
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+***@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/59d2bfa8-332c-4f37-97c7-4cf98867d414%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...