jenkins-docs/simple-node-js-react-npm-app

process apparently never started in /home/jenkins/workspace/developer-console@tmp/durable-28a71889

KOSSOKO opened this issue · 0 comments

All aver the internet I didn't find a solution. I'm learning this tutorial about how to build a node.js and React app with Jenkins : https://jenkins.io/doc/tutorials/build-a-node-js-and-react-app-with-npm/#fork-sample-repository

During the build, I got the error

    process apparently never started in /home/jenkins/workspace/developer-console@tmp/durable-28a71889

    (running Jenkins temporarily with -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH_DIAGNOSTICS=true might make the problem clearer)

    script returned exit code -2

My Jenkinsfile looks like :

pipeline {
    agent {
        docker {
            image 'node:6-alpine' 
            args '-p 3000:3000' 
        }
    }
    stages {
        stage('Build') { 
            steps {
                sh 'npm install' 
            }
        }
    }
}

Please do you know how could I correct it ? During the process, when I check, the node:6-alpine is created and running without errors. Thanks