Skip to content

Commit

Permalink
ref(15): Start testing wild integration with Jenkins
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanjerome committed Aug 18, 2023
1 parent 3efe33c commit ee4a516
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions test/jenkins/config/plugins.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ pipeline-stage-view:latest
workflow-aggregator:latest
kubernetes:latest
job-dsl:latest
ansicolor:latest
8 changes: 6 additions & 2 deletions vars/logger.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,12 @@ private void logger(level, message) {
def LOG_LEVEL = 'INFO'

// Global log colorization enabled flag
def env = new java.lang.ProcessEnvironment()
def colorization = env.getenv('LOGGER_COLORIZED_ENABLED')
def colorization = false
try {
ansiColor('xterm') {
colorization = true
}
} catch(Throwable ex) { }

if (LOG_LEVELS.indexOf(level) <= LOG_LEVELS.indexOf(LOG_LEVEL)) {
def color = COLORS[level]
Expand Down

0 comments on commit ee4a516

Please sign in to comment.