diff --git a/vars/wildPipeline.groovy b/vars/wildPipeline.groovy index 7c768a4..62e38af 100644 --- a/vars/wildPipeline.groovy +++ b/vars/wildPipeline.groovy @@ -11,7 +11,6 @@ def call() { "log_path=${env.WORKSPACE}/log", "current_git_branch=${env.BRANCH_NAME}", "colored_xterm=${colored_xterm}", - "LOG_LEVEL=DEBUG" ] podTemplate( @@ -21,13 +20,11 @@ def call() { ) { node(pod_init_label) { - withEnv(env_variables_list) { - logger.bannerLogo(libraryResource('config/banner/wild.txt')) stage('init') { - + withEnv(env_variables_list) { logger.bannerStage('init') @@ -89,22 +86,20 @@ def call() { workflow.actions.each { action -> stage(action.name) { - withEnv(["LOG_LEVEL=${action.log_level?action.log_level:"SUCCESS"}"]) { - logger.bannerStage(action.name) - container(action.container) { - if (action.pre_script?.trim()) { - logger.info("Processing PRE action script ${action.pre_script}...") - sh "chmod +x ${action.pre_script}" - sh "./${action.pre_script}" - } - logger.info("Processing MAIN action script ${action.script}...") - sh "chmod +x ${action.script}" - sh "./${action.script}" - if (action.post_script?.trim()) { - logger.info("Processing POST action script ${action.post_script}...") - sh "chmod +x ${action.post_script}" - sh "./${action.post_script}" - } + logger.bannerStage(action.name) + container(action.container) { + if (action.pre_script?.trim()) { + logger.info("Processing PRE action script ${action.pre_script}...") + sh "chmod +x ${action.pre_script}" + sh "./${action.pre_script}" + } + logger.info("Processing MAIN action script ${action.script}...") + sh "chmod +x ${action.script}" + sh "./${action.script}" + if (action.post_script?.trim()) { + logger.info("Processing POST action script ${action.post_script}...") + sh "chmod +x ${action.post_script}" + sh "./${action.post_script}" } } }