我基本上是想在新添加的存储库中运行npm install和grunt build命令。
inputs:
- name: repo
- path:
run:
path: repo/
args:
- npm install
- grunt build发布于 2017-01-31 03:15:04
path:指的是容器中要执行的二进制/脚本的路径。
在Tasks文档中查看此示例:https://concourse-ci.org/tasks.html#task-environment
run:
path: sh
args:
- -exc
- |
whoami
envsh是要执行的程序,args被传递给sh程序
发布于 2019-12-06 05:57:33
Topher Bullock答案的细微变化
run:
path: sh
args:
- -exc
- whoami && env如果whoami没有返回错误,它将运行env
即使whoami失败,它也会运行env。
run:
path: sh
args:
- -exc
- whoami || envhttps://stackoverflow.com/questions/41942784
复制相似问题