-
Bug
-
Resolution: Unresolved
-
Blocker
-
None
-
Jenkins ver. 2.121.3
Kubernetes plugin ver. 1.12.1
Hi Jenkins community,
We have a pipeline that fails almost every time during the finally block when performing archiveArtifacts steps.
We're using Jenkins kubernetes plugin to provision jenkins-slaves automatically on kubernetes cluster.
The issue seems to occur when artifacts are not present, but since we're using "allowEmptyResults: true", we don't expect the job to fail.
There are mainly two exceptions in the log :
java.lang.InterruptedException: no matches found within 10000 at hudson.FilePath$34.hasMatch(FilePath.java:2677)
and :
hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection from ....
We don't know if they are related to each other or not, but they seem to happen together each time.
And then the master jenkins looses the connection to the slave, hence the pipeline is declared as a FAILURE.
We also suspect that this issue is related to the overall memory allocated to the jenkins slave, since we are noticing that there is a peak consumption on the jnlp slave at the very end, and we don't know to what it corresponds, since we're not doing much on the jnlp container (we're using another container for the build process)
Here's the code of the finally block :
} finally { container('build_container') { junit testResults: 'e2e-testing/build/reports/**/*.xml', allowEmptyResults: true junit testResults: '**/build/test-results/test/**/*.xml', allowEmptyResults: true archiveArtifacts artifacts: 'e2e-testing/build/screenshots/**/*.png', fingerprint: true, allowEmptyArchive: true archiveArtifacts artifacts: '**/hs_err_*.log', allowEmptyArchive: true } }
and the pod specification :
podTemplate( label: label, envVars: [ envVar(key: 'GRADLE_USER_HOME', value: '/home/jenkins/.gradle'), ], containers: [ containerTemplate( name: 'build_container', image: "${GlobalVars.artifactory}/build_image:1.6", ttyEnabled: true, resourceRequestMemory: '12Gi', resourceLimitMemory: '12Gi' ), containerTemplate( name: 'jnlp', image: 'jenkinsci/jnlp-slave:latest', ttyEnabled: true, resourceRequestMemory: '1Gi', resourceLimitMemory: '1Gi', ) ] )
Any ideas please ?