docker - 进程显然从未在 /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
容器已创建并运行而没有错误。
解决方案
推荐阅读
- svg - SVG 文本元素上的 CSS 转换在 Safari 中不起作用
- xml - 尝试将 shipfromlocationref 交换为 shiptolocationref 以获取以下 XML 并面临命名空间问题
- javascript - 使用 Promise 响应来自异步服务的 useContext
- rest - 通过 Web 应用程序进行动态 CRM 身份验证
- c++ - 如何使用 fifo 传递字符串对象(std::string)?
- javascript - 在 Electron 本地运行非内联 JS
- node.js - .react-scripts start : 'react-scripts' 不是内部或外部命令、可运行程序或批处理文件
- java - 如何打破约束圈并在Android的约束布局中重新初始化
- r - 计算每月在每个地点每次停留的平均天数 - dplyr
- sql-server - 基于模式的多租户