X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ci-management.git;a=blobdiff_plain;f=jjb%2Fshell%2Frun_bluval.sh;fp=jjb%2Fshell%2Frun_bluval.sh;h=d850f799e826df694caaeb926afb630fbcd02b5b;hp=fbe9aed6ceee8b6e4ae1765ba981adcb30762140;hb=0da1e36c7ac57c3a13180e3a6c437bda6ad3dca4;hpb=749cd96930ccde59751a92d8c0b88ef0929f3efc diff --git a/jjb/shell/run_bluval.sh b/jjb/shell/run_bluval.sh index fbe9aed..d850f79 100755 --- a/jjb/shell/run_bluval.sh +++ b/jjb/shell/run_bluval.sh @@ -15,6 +15,7 @@ export PATH=$PATH:/home/jenkins/.local/bin cwd=$(pwd) current_user=$(whoami) is_optional="false" +pull="false" info () { logger -s -t "run_blu_val.info" "$*" @@ -66,7 +67,7 @@ error () { } # Get options from shell -while getopts "j:k:u:s:b:l:r:n:ov:" optchar; do +while getopts "j:k:u:s:b:l:r:n:opv:" optchar; do case "${optchar}" in j) cluster_master_ip=${OPTARG} ;; k) k8s_config_dir=${OPTARG} ;; @@ -76,6 +77,7 @@ while getopts "j:k:u:s:b:l:r:n:ov:" optchar; do n) blueprint_name=${OPTARG} ;; u) sh_user=${OPTARG} ;; o) is_optional="true" ;; + p) pull="true" ;; v) version=${OPTARG} ;; *) echo "Non-option argument: '-${OPTARG}'" >&2 usage @@ -162,6 +164,10 @@ if [ "$is_optional" == "true" ] || [ "$OPTIONAL" == "yes" ] then options+=" -o" fi +if [ "$pull" == "true" ] || [ "$PULL" == "yes" ] +then + options+=" -p" +fi set +e if python3 --version > /dev/null; then