The "mvn clean" stage is getting stuck for sometime and lead to the following error:
[Pipeline] sh
process apparently never started in /home/jenkins/jenkins/workspace/<MyProject>@tmp/durable-8e4de4ec
(running Jenkins temporarily with -D
org.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH_DIAGNOSTICS=true might make the problem
clearer)
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // withEnv
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code -2
Finished: FAILURE
Here is my jenkinsfile script:
pipeline{
agent{
label 'DOCKER'
}
tools {
maven 'M3'
jdk 'JAVA_HOME'
}
stages{
stage('build'){
steps{
echo 'Running Build Phase'
sh 'mvn clean'
}
}
}
}
Not sure if I need to update any configurations. I have updated /etc/init.d/jenkins with updated open-jdk version.