在竹子里,
Bamboo plan -> Actions -> configure plan -> Stages & Jobs -> Miscellaneous tab
可以选择选中/取消选中
Clean working directory after each build
我有一个脚本可以获取此编辑配置页面和其他选项卡的URL。
Eg:
http://bamboo.test1.com:8080/build/admin/edit/editMiscellaneous.action?buildKey=ZT-WIN-JOB1
有没有办法通过脚本传递此url并查找是否选中了该选项?请告诉我。
脚本:
#!/bin/bash
mydir="/bamboo/artifacts"
cd "$mydir"
bambooServer="http://bamboo1.test.com:8080/build/admin/edit/editMiscellaneous.action?buildKey="
job="-JOB1"
for dir in */
do
bamboourl=`echo "$bambooServer$dir" | sed 's/\/$//g'`$job
echo $bamboourl
done