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


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/f9a297b4-86fb-484a-859a-f9c78ebcd463%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to