diff --git a/build.sh b/build.sh index e35a88a23..d30a9d668 100755 --- a/build.sh +++ b/build.sh @@ -8,7 +8,6 @@ OPTIND=1 target="build" build_number="1" remoting_version="3291.vb_131b_dc231fa_" -disable_env_props=0 exit_result=0 function exit_if_error() { @@ -19,7 +18,7 @@ function exit_if_error() { fi } -while getopts "t:r:b:d" opt; do +while getopts "t:r:b" opt; do case "$opt" in t) target=$OPTARG @@ -30,9 +29,6 @@ while getopts "t:r:b:d" opt; do b) build_number=$OPTARG ;; - d) - disable_env_props=1 - ;; *) echo "Invalid flag passed: '${opt}'." ;; @@ -46,11 +42,6 @@ if [[ $# -gt 0 ]] ; then shift fi -if [[ "${disable_env_props}" = "0" ]] ; then - source env.props - export "$(cut -d= -f1 env.props)" -fi - export REGISTRY_ORG=${DOCKERHUB_ORGANISATION:-jenkins4eval} export REGISTRY_REPO_AGENT=${DOCKERHUB_REPO_AGENT:-agent} export REGISTRY_REPO_INBOUND_AGENT=${DOCKERHUB_REPO_INBOUND_AGENT:-inbound-agent}