diff --git a/first-class-pipeline/src/com/freeleaps/devops/EnvironmentVars.groovy b/first-class-pipeline/src/com/freeleaps/devops/EnvironmentVars.groovy index 45af367d..be0323e6 100644 --- a/first-class-pipeline/src/com/freeleaps/devops/EnvironmentVars.groovy +++ b/first-class-pipeline/src/com/freeleaps/devops/EnvironmentVars.groovy @@ -11,6 +11,7 @@ class EnvironmentVars { def injectVars(Map configurations) { steps.env.SERVICE_NAME = "${configurations.SERVICE_NAME}" + echo "SERVICE_NAME: ${steps.env.SERVICE_NAME}" if (steps.env.SERVICE_NAME == null || steps.env.SERVICE_NAME.isEmpty()) { steps.error("SERVICE_NAME is required") } diff --git a/first-class-pipeline/vars/pipelineCall.groovy b/first-class-pipeline/vars/pipelineCall.groovy index 99cad383..21f252a1 100644 --- a/first-class-pipeline/vars/pipelineCall.groovy +++ b/first-class-pipeline/vars/pipelineCall.groovy @@ -5,7 +5,6 @@ import com.freeleaps.devops.SourceFetcher def call(Map configurations) { def environmentVars = new EnvironmentVars(this) - environmentVars.injectVars(configurations) pipeline { agent any