No momento, estou tendo um problema com o Jenkins em execução no Ubuntu 18.04. A etapa do pipeline sh trava e eventualmente atinge o tempo limite com a seguinte mensagem:
[Pipeline] sh
process apparently never started in /var/lib/jenkins/workspace/members-only-demo@tmp/durable-494a3b0d
(running Jenkins temporarily with -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH_DIAGNOSTICS=true might make the problem clearer)
Cannot contact : java.io.FileNotFoundException: File '/var/lib/jenkins/workspace/members-only-demo@tmp/durable-494a3b0d/output.txt' does not exist
Aqui está o dump do tópico:
Thread #6
at DSL.sh(completed process (code -2) in /var/lib/jenkins/workspace/members-only-demo@tmp/durable-494a3b0d; recurrence period: 15000ms; check task scheduled; cancelled? false done? false)
at WorkflowScript.run(WorkflowScript:9)
at DSL.stage(Native Method)
at WorkflowScript.run(WorkflowScript:8)
at DSL.node(running on )
at WorkflowScript.run(WorkflowScript:3)
O script do pipeline é o seguinte:
#!/usr/bin/env groovy
node {
stage('Checkout') {
checkout([$class: 'GitSCM', branches: [[name: '*/da-demo']], doGenerateSubmoduleConfigurations: false, extensions: [], submoduleCfg: [], userRemoteConfigs: [[credentialsId: 'TeamHub2', url: '[email protected]:digitalarchitects/projects/slender-man/repositories/git/members-only-app']]])
}
stage('Create Build Dir') {
sh label: '', returnStdout: true, script: 'rm --recursive --force ${env.WORKSPACE}/build/'
sh 'mkdir --parents ${env.WORKSPACE}/build/coverage ${env.WORKSPACE}/build/logs ${env.WORKSPACE}/build/pdepend'
}
...
}
Não tenho certeza de como solucionar esse problema. Alguém pode ajudar por favor?