与詹金斯用户一起运行咕噜声

时间:2017-03-10 08:44:12

标签: javascript node.js jenkins

我有一个在jenkins上运行的脚本可以执行一些操作。问题是最后一部分,更改目录并以jenkins用户身份运行grunt

我得到以下输出: [4mRunning "env:dev" (env) task[24m

[4mRunning "sass:dist" (sass) task[24m

[4mRunning "less:dist" (less) task[24m [32m>> [39m1 stylesheet created.

[4mRunning "jshint:all" (jshint) task[24m

✔ No problems

[4mRunning "eslint:target" (eslint) task[24m

[4mRunning "csslint:all" (csslint) task[24m [32m>> [39m4 files lint free.

[4mRunning "mkdir:upload" task[24m

[4mRunning "copy:localConfig" (copy) task[24m

[4mRunning "concurrent:default" (concurrent) task[24m
[4mRunning "nodemon:dev" (nodemon) task[24m
[33m[nodemon] 1.11.0[39m
 [33m[nodemon] to restart at any time, enter rs[39m
  [33m[nodemon] watching: gruntfile.js modules/*/server/views/*.html
server.js config/**/*.js modules/*/server/**/*.js modules/*/server/config/*.js[39m
[32m[nodemon] starting
 node --debug server.js``[39m`` [4mRunning "watch" task[24m  Waiting...
Debugger listening on [::]:5858

[31m[nodemon] app crashed - waiting for file changes before starting...[39m
Build was aborted

有谁知道如何绕过此错误?谢谢!

[编辑]
对不起,忘了添加更多细节。显然,grunt命令仅在您以root用户身份执行时才有效。当与任何其他用户一起执行时,即使它具有root权限,它也会给出我写的输出^。我需要它来自我在jenkins server上为jenkins node slave创建的脚本。任何提示或想法?

0 个答案:

没有答案