首页 > 解决方案 > 进程显然从未在 /home/jenkins/workspace/developer-console@tmp/durable-28a71889 开始

问题描述

所有 aver 互联网我没有找到解决方案。我正在学习有关如何使用 Jenkins 构建 node.js 和 React 应用程序的教程:https ://jenkins.io/doc/tutorials/build-a-node-js-and-react-app-with-npm/ #fork-sample-repository

在构建过程中,我得到了错误

进程显然从未在 /home/jenkins/workspace/developer-console@tmp/durable-28a71889 开始

(使用 -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.LAUNCH_DIAGNOSTICS=true 暂时运行 Jenkins 可能会使问题更清晰)

脚本返回退出代码 -2

我的 Jenkinsfile 看起来像:

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

请问你知道我该如何纠正吗?在此过程中,当我检查时,node:6-alpine容器已创建并运行而没有错误。

标签: dockerjenkinsnpmjenkins-blueocean

解决方案


推荐阅读