Ted*_*oko 5 npm jenkins docker jenkins-blueocean
所有的互联网我都没有找到解决方案。我正在学习有关如何使用 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'
}
}
}
}
Run Code Online (Sandbox Code Playgroud)
请问你知道我该如何纠正吗?在此过程中,当我检查时,node:6-alpine容器已创建并运行且没有错误。
| 归档时间: |
|
| 查看次数: |
1824 次 |
| 最近记录: |