From 4092e0f21585dbdcab4a7ef7669a012852a12e33 Mon Sep 17 00:00:00 2001 From: Levon Gevorgyan Date: Fri, 27 Mar 2026 17:50:07 -0500 Subject: [PATCH] turn DEBUG off for Jenkinsfile by default --- Jenkinsfile | 2 +- main.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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