pipeline {
agent none
stages {
stage('Foo') {
agent {
docker {
label 'dind'
image 'alpine'
customWorkspace '/foo'
}
}sh: can't create /foo@tmp/durable-5a40a590/jenkins-log.txt: nonexistent directory
sh: can't create /foo@tmp/durable-5a40a590/jenkins-result.txt.tmp: nonexistent directory
mv: can't rename '/foo@tmp/durable-5a40a590/jenkins-result.txt.tmp': No such file or directory
Is it really essential to use a non-standard directory here? It is both non-standard in the jenkins sense, where workspace is typically a sub-dir of
the jenkins user home, and non-standard according to the Filesystem Hierarchy Standard which makes thing much harder...
Björn
pipeline {
agent none
stages {
stage('Foo') {
agent {
node {
label 'dind'
customWorkspace '/test'
}
}
steps {
sh 'ls -l /test'