diff --git a/src/net/wooga/jenkins/pipeline/check/EnclosureCreator.groovy b/src/net/wooga/jenkins/pipeline/check/EnclosureCreator.groovy index b35c958a..588c621e 100644 --- a/src/net/wooga/jenkins/pipeline/check/EnclosureCreator.groovy +++ b/src/net/wooga/jenkins/pipeline/check/EnclosureCreator.groovy @@ -14,13 +14,13 @@ class EnclosureCreator { } Closure withNodeAndEnv(Platform platform, PackedStep mainCls, Closure catchCls, PackedStep finallyCls) { - def testEnvironment = platform.testEnvironment + - ["TRAVIS_JOB_NUMBER=${buildNumber}.${platform.name.toUpperCase()}"] return { def platformLabels = platform.generateTestLabelsString() def nodeLabels = platformLabels && !platformLabels.empty ? "atlas && ${platform.generateTestLabelsString()}" : "atlas" jenkins.node(nodeLabels) { + def testEnvironment = platform.testEnvironment + + ["TRAVIS_JOB_NUMBER=${buildNumber}.${platform.name.toUpperCase()}"] jenkins.withEnv(testEnvironment) { try { mainCls.call()