Jenkins Declarative Pipeline Error : OCI runtime exec failed

288 views
Skip to first unread message

Christophe Pruvost

unread,
Apr 2, 2019, 12:37:56 PM4/2/19
to Jenkins Users
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


Christophe Pruvost

unread,
Apr 9, 2019, 10:50:21 AM4/9/19
to Jenkins Users
Up...

Hi all,

I think it is not a difficult question...someone can answer ?
Ty for all
Regards

Wolfgang Friedl

unread,
Jun 18, 2019, 8:23:57 AM6/18/19
to Jenkins Users
Could you solve the problem?
I run into the same issue.

Regards

Wolfgang

Swarup Kumar Sil

unread,
Jun 18, 2019, 8:47:36 AM6/18/19
to jenkins...@googlegroups.com
Not yet.

Sent from my Huawei Mobile
--
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/032bfb90-5f09-4ce9-b7a9-5d72f9f7adf4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages