Hi all,
I have a declarative pipeline like below and I got an error at the stage 'Build Docker Image'
OCI runtime exec failed: exec failed: container_linux.go:348: starting container process caused "chdir to cwd (\"/opt/bitnami/apps/jenkins/jenkins_home/workspace/AtpDemo2@2/docker\") set in config.json failed: no such file or directory": unknown
Aborted by Christophe PruvostSending interrupt signal to process
pipeline {
agent {
docker {
image 'cpruvost/infraascode:latest'
args '-u root:root'
}
}
stages {
stage('Display User Name') {
..
}
stage('Check Infra As Code Tools') {
..
}
...
//cause I do not want to use docker in docker
stage('Docker Build Application Image') {
agent any
steps {
dir ('./docker') {
script {
sh 'whoami'
sh 'pwd'
sh 'ls'
sh 'docker --version'
}
}
}
}
}
Sure I did something wrong so tell me please
ty for all