diff --git a/Jenkinsfile b/Jenkinsfile index 5ac38f0..d8d9b10 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -14,7 +14,7 @@ def withDockerCreds(body) { pipeline { agent none environment { - DEBUG = "1" + DEBUG = "0" HEADLESS = "1" } options { buildDiscarder logRotator(numToKeepStr: '4') } diff --git a/main.sh b/main.sh index d42c95c..441f8ab 100755 --- a/main.sh +++ b/main.sh @@ -78,7 +78,7 @@ export REPO_DIR="$(cd "$(dirname "${thisFile}")/.." && echo "$PWD")" source "${REPO_DIR}/main.sh" || exit 1 scr_name="$(bash_basename $0)" cmd="${scr_name//.sh/}" -if [[ $DEBUG == 1 ]]; then set -x; fi +[[ ${DEBUG} == 1 ]] && set -x $cmd "$@"' >"${ENTRY_SCRIPT}" chmod +x "${ENTRY_SCRIPT}" for funcName in "${FB_FUNC_NAMES[@]}"; do