-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
Jenkins 2.32.2
Pipeline Model Definition Plugin 1.1.1 (and all associated/dependent plugins, same/greater versions)
Given the following snippet of a Jenkinsfile:
environment {
PYTEST_ADDOPTS =
"-n=10 " +
"--color=yes " +
"--tb=short " +
"--driver=SauceLabs " +
"--variables=capabilities.json"
}
When trying to run the above, we get:
Actual Results:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed:
WorkflowScript: 19: Environment variable values must either be strings or function calls. @ line 19, column 5.
PYTEST_ADDOPTS =
^
The workaround is to do:
environment {
PYTEST_ADDOPTS = "-n=10 --color=yes --tb=short --driver=SauceLabs --variables=capabilities.json"
}
- duplicates
-
JENKINS-42771 Upgraded 1.1.1 of Pipeline Model Definition plugin throws error parsing concatenated variable-name/value strings
- Closed