diff --git a/src/main/groovy/com/lesfurets/jenkins/unit/BasePipelineTest.groovy b/src/main/groovy/com/lesfurets/jenkins/unit/BasePipelineTest.groovy index 88e9232c..f4548dd9 100644 --- a/src/main/groovy/com/lesfurets/jenkins/unit/BasePipelineTest.groovy +++ b/src/main/groovy/com/lesfurets/jenkins/unit/BasePipelineTest.groovy @@ -269,7 +269,7 @@ abstract class BasePipelineTest { } list.each { - def item = it.split('=') + def item = it.split('=', 2) assert item.size() == 2, "withEnv list does not look right: ${list.toString()}" addEnvVar(item[0], item[1]) }