Hi,
I'm doing a Jenkins pipeline with the kubernetes plugin (1.12.4).
Currently facing some odd behaviors where steps are executed before the pod is actually "ready". See some of the errors I got below.
One of the recurring error is about a non existing directory inside the workspace, or the main container not existing in the pod.
BTW, what's exit code -2 ?
Looking at the pod definition I don't see any probe for the injected jnlp container.
Should I define a probe to ensure a proper readiness ? Does anyone have recommendations on how to do this the right way ?
Thanks,
Romain
[ee4j-glassfish_ci-pipeline-YWJPM77PBRNTKWL4JGYGVAYHJW5MFPG52VIUHMUAGFIJ2G7NYJHQ] Running shell script
process apparently never started in /home/jenkins/workspace/ee4j-glassfish_ci-pipeline-YWJPM77PBRNTKWL4JGYGVAYHJW5MFPG52VIUHMUAGFIJ2G7NYJHQ@tmp/durable-3fb9a8c3
script returned exit code -2
----
[ee4j-glassfish_ci-pipeline-YWJPM77PBRNTKWL4JGYGVAYHJW5MFPG52VIUHMUAGFIJ2G7NYJHQ] Running shell script
container [glassfish-ci] does not exist in pod [jenkins-slave-p3p21-whthx]
----
[ee4j-glassfish_ci-pipeline-YWJPM77PBRNTKWL4JGYGVAYHJW5MFPG52VIUHMUAGFIJ2G7NYJHQ] Running shell script
process apparently never started in /home/jenkins/workspace/ee4j-glassfish_ci-pipeline-YWJPM77PBRNTKWL4JGYGVAYHJW5MFPG52VIUHMUAGFIJ2G7NYJHQ@tmp/durable-fecb2d64
sh: 1: cannot create /home/jenkins/workspace/ee4j-glassfish_ci-pipeline-YWJPM77PBRNTKWL4JGYGVAYHJW5MFPG52VIUHMUAGFIJ2G7NYJHQ@tmp/durable-fecb2d64/jenkins-log.txt: Directory nonexistent
sh: 1: cannot create /home/jenkins/workspace/ee4j-glassfish_ci-pipeline-YWJPM77PBRNTKWL4JGYGVAYHJW5MFPG52VIUHMUAGFIJ2G7NYJHQ@tmp/durable-fecb2d64/jenkins-result.txt.tmp: Directory nonexistent
mv: cannot stat '/home/jenkins/workspace/ee4j-glassfish_ci-pipeline-YWJPM77PBRNTKWL4JGYGVAYHJW5MFPG52VIUHMUAGFIJ2G7NYJHQ@tmp/durable-fecb2d64/jenkins-result.txt.tmp': No such file or directory
script returned exit code -2
----