github触发jenkins任务执行失败

发布于 2022-09-07 19:47:26 字数 2528 浏览 23 评论 0

我的项目配置了github分支提交触发jenkins任务,之前执行都没问题,今天突然报如下错误:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'test' ]
2 info using npm@5.6.0
3 info using node@v9.6.1
4 verbose run-script [ 'pretest', 'test', 'posttest' ]
5 info lifecycle poppy-admin@0.0.1~pretest: poppy-admin@0.0.1
6 info lifecycle poppy-admin@0.0.1~test: poppy-admin@0.0.1
7 verbose lifecycle poppy-admin@0.0.1~test: unsafe-perm in lifecycle true
8 verbose lifecycle poppy-admin@0.0.1~test: PATH: /usr/local/lib/node_modules/.npm_npminstall/node_modules/.5.6.0@npm/node_modules/npm-lifecycle/node-gyp-bin:/app/test_poppy/admin/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
9 verbose lifecycle poppy-admin@0.0.1~test: CWD: /app/test_poppy/admin
10 silly lifecycle poppy-admin@0.0.1~test: Args: [ '-c', 'cross-env NODE_ENV=test node build/build-wrapper.js' ]
11 silly lifecycle poppy-admin@0.0.1~test: Returned: code: 1  signal: null
12 info lifecycle poppy-admin@0.0.1~test: Failed to exec test script
13 verbose stack Error: poppy-admin@0.0.1 test: `cross-env NODE_ENV=test node build/build-wrapper.js`
13 verbose stack Exit status 1
13 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/.npm_npminstall/node_modules/.5.6.0@npm/node_modules/npm-lifecycle/index.js:285:16)
13 verbose stack     at EventEmitter.emit (events.js:127:13)
13 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/.npm_npminstall/node_modules/.5.6.0@npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:127:13)
13 verbose stack     at maybeClose (internal/child_process.js:933:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
14 verbose pkgid poppy-admin@0.0.1
15 verbose cwd /app/test_poppy/admin
16 verbose Linux 3.10.0-327.28.2.el7.x86_64
17 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "test"
18 verbose node v9.6.1
19 verbose npm  v5.6.0
20 error code ELIFECYCLE
21 error errno 1
22 error poppy-admin@0.0.1 test: `cross-env NODE_ENV=test node build/build-wrapper.js`
22 error Exit status 1
23 error Failed at the poppy-admin@0.0.1 test script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

从这个信息没看出是什么原因,jenkins报错之后直接挂掉了。项目是基于Vue的前端工程。还需要我提供什么信息请留言,谢谢!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文