【发布时间】:2019-04-13 07:11:41
【问题描述】:
我使用 Jenkins 来部署我的项目。我创建了一个使用 ssh 在远程主机上执行 shell 脚本的作业。
有我的脚本。
cd my-project;
git pull;
npm install;
npm test;
pm2 update;
当某些脚本失败时,例如
GitLab: The project you were looking for could not be found.
fatal: Could not read from remote repository.
命令会继续执行,Jenkins的输出是“Finished: SUCCESS”。
但我希望它无法构建。
我是怎么做到的?
【问题讨论】:
标签: jenkins