From 1b969d81a71084daffb1ed3154b836ff3b9cda1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E6=8C=AF=E5=AE=87?= <> Date: Mon, 20 Jan 2025 10:12:26 +0800 Subject: [PATCH] refactor(pipelineCall): replace 'scripts' block with 'script' for consistency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 孙振宇 <> --- first-class-pipeline/vars/pipelineCall.groovy | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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") {