账号密码登录
微信安全登录
微信扫描二维码登录

登录后绑定QQ、微信即可实现信息互通

手机验证码登录
找回密码返回
邮箱找回 手机找回
注册账号返回
其他登录方式
分享
  • 收藏
    X
    github触发jenkins任务执行失败
    28
    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的前端工程。还需要我提供什么信息请留言,谢谢!

    0
    打赏
    收藏
    点击回答
        全部回答
    • 0
    更多回答
    网站公告
    扫一扫访问手机版
    • 回到顶部
    • 回到顶部