【发布时间】:2016-11-17 20:56:43
【问题描述】:
我正在尝试运行 http 调用以测试将在 jenkins 机器中运行的实时 Web api。
这是已使用的管道脚本。
stage 'build'
node {
git url: 'https://github.com/juliomarcos/sample-http-test-ci/'
sh "npm install"
sh "npm start"
}
stage 'test'
node {
sh "npm test"
}
但是 jenkins 不会转到 test 步骤。 Web 应用程序完全启动后如何运行npm test?
【问题讨论】:
标签: node.js jenkins jenkins-pipeline