【发布时间】:2017-07-26 09:44:57
【问题描述】:
我正在尝试在 Ubuntu 服务器上从 Jenkins 执行 shell 脚本中安装和使用 nvm,但出现此错误:
16:00:21 /tmp/hudson5983664925305072739.sh:第 8 行:nvm:命令不 找到了
这是我迄今为止尝试过的,但没有成功:
#!/bin/bash
touch ~/.profile && source ~/.profile;
nvm current || echo "SSH NVM is being installed" && touch ~/.profile && curl -sL https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh -o install_nvm.sh && bash install_nvm.sh && source ~/.profile
echo "checking nvm"
bash ~/.nvm/nvm.sh;
nvm --version || exit 1;
Jenkins 执行 shell 截图:
【问题讨论】:
标签: ubuntu jenkins continuous-integration nvm