用于检查是否在bamboo ui中检查某个选项的脚本

时间:2016-02-02 21:39:41

标签: bamboo

在竹子里,

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

0 个答案:

没有答案