【发布时间】:2018-07-12 11:13:57
【问题描述】:
我刚刚安装了 jenkins(安装了建议的插件),然后添加了插件 NodeJS Plugin,但下面仍然出现同样的错误。有没有人有想法..?对任何 cmets 都非常有帮助,谢谢! (顺便说一句,我对詹金斯很陌生)
阶段日志(邮递员测试)
Git -- https://github.com/reponame/Api-call-testing-automation.git -- (self time 1s)
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url https://github.com/reponame/Api-call-testing-automation.git # timeout=10
Fetching upstream changes from https://github.com/reponame/Api-call-testing-automation.git
> git --version # timeout=10
> git fetch --tags --progress https://github.com/reponame/Api-call-testing-automation.git +refs/heads/*:refs/remotes/origin/*
> git rev-parse refs/remotes/origin/master^{commit} # timeout=10
> git rev-parse refs/remotes/origin/origin/master^{commit} # timeout=10
Checking out Revision 96d5533737397fdb51e1dd116ec5c0667ebb3752 (refs/remotes/origin/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f 96d5533737397fdb51e1dd116ec5c0667ebb3752
> git branch -a -v --no-abbrev # timeout=10
> git branch -D master # timeout=10
> git checkout -b master 96d5533737397fdb51e1dd116ec5c0667ebb3752
Commit message: "First Commit"
> git rev-list --no-walk 96d5533737397fdb51e1dd116ec5c0667ebb3752 # timeout=10
Shell 脚本 -- npm install -- (self time 271ms)
>[jsonplaceholder_api_test] Running shell script
+ npm install
/var/jenkins_home/workspace/jsonplaceholder_api_test@tmp/durable-25502f6e/script.sh: 2: /var/jenkins_home/workspace/jsonplaceholder_api_test@tmp/durable-25502f6e/script.sh: npm: not found
【问题讨论】:
标签: node.js jenkins npm jenkins-plugins jenkins-pipeline