5

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 container is created and running without errors.

Kara
  • 6,115
  • 16
  • 50
  • 57
Teddy Kossoko
  • 1,168
  • 3
  • 20
  • 48

0 Answers0