diff --git a/first-class-pipeline/vars/pipelineCall.groovy b/first-class-pipeline/vars/pipelineCall.groovy index 7c681406..5f28f8be 100644 --- a/first-class-pipeline/vars/pipelineCall.groovy +++ b/first-class-pipeline/vars/pipelineCall.groovy @@ -20,7 +20,7 @@ def call(Map configurations) { stage("Source Codes Checkout") { steps { scripts { - var sourceFetcher = new SourceFetcher(this) + def sourceFetcher = new SourceFetcher(this) sourceFetcher.fetch(configurations) } } @@ -37,7 +37,7 @@ def call(Map configurations) { stage("Commit Linting If Enabled") { steps { scripts { - enabled = "${configurations.COMMIT_MESSAGE_LINT_ENABLED}" + def enabled = "${configurations.COMMIT_MESSAGE_LINT_ENABLED}" if (enabled == "true") { print("Commit Linting is enabled")