diff --git a/first-class-pipeline/vars/pipelineCall.groovy b/first-class-pipeline/vars/pipelineCall.groovy index 5f28f8be..32fd67ff 100644 --- a/first-class-pipeline/vars/pipelineCall.groovy +++ b/first-class-pipeline/vars/pipelineCall.groovy @@ -11,7 +11,6 @@ def call(Map configurations) { options { buildDiscarder(logRotator(numToKeepStr: '25')) timeout(time: 30, unit: 'MINUTES') - ansiColor('xterm') timestamps() } @@ -19,7 +18,7 @@ def call(Map configurations) { stage("Source Codes Checkout") { steps { - scripts { + script { def sourceFetcher = new SourceFetcher(this) sourceFetcher.fetch(configurations) } @@ -36,7 +35,7 @@ def call(Map configurations) { stage("Commit Linting If Enabled") { steps { - scripts { + script { def enabled = "${configurations.COMMIT_MESSAGE_LINT_ENABLED}" if (enabled == "true") {