diff --git a/cucumber-selenium-grid/Jenkinsfile b/cucumber-selenium-grid/Jenkinsfile index cd9d5bb6..190b3865 100644 --- a/cucumber-selenium-grid/Jenkinsfile +++ b/cucumber-selenium-grid/Jenkinsfile @@ -8,7 +8,7 @@ openshift.withCluster() { env.STAGE1 = "${projectBase}-dev" env.STAGE2 = "${projectBase}-stage" env.STAGE3 = "${projectBase}-prod" - def label = "nodejs-slave-${UUID.randomUUID().toString()}" + env.LABEL = "nodejs-slave-${UUID.randomUUID().toString()}" } pipeline { @@ -19,7 +19,7 @@ pipeline { // workspace agent { kubernetes { - label "${label}" + label "${LABEL}" cloud 'openshift' serviceAccount 'jenkins' containerTemplate {