-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
Jenkins: 2.32.3
Pipeline: Declarative Agent API - 1.1.1
Pipeline: Declarative Extension Points API - 1.1.1
Pipeline: Model Definition - 1.1.1
Pipeline Model API - 1.1.1
Pipeline: Stage Tags Metadata - 1.1.1
Steps to Reproduce:
- Given https://github.com/mozilla/fxapom/blob/0f3b3cdb161940614ef50f2203a4633df1464c74/Jenkinsfile#L19
- Run a job with the above Jenkinsfile
Actual Results:
We get:
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 = |
^ |
1 error |
at org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:310) |
at org.codehaus.groovy.control.CompilationUnit.applyToPrimaryClassNodes(CompilationUnit.java:1073) |
at org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:591) |
at org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:569) |
at org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:546) |
at groovy.lang.GroovyClassLoader.doParseClass(GroovyClassLoader.java:298) |
at groovy.lang.GroovyClassLoader.parseClass(GroovyClassLoader.java:268) |
at groovy.lang.GroovyShell.parseClass(GroovyShell.java:688) |
at groovy.lang.GroovyShell.parse(GroovyShell.java:700) |
at org.jenkinsci.plugins.workflow.cps.CpsGroovyShell.reparse(CpsGroovyShell.java:67) |
at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.parseScript(CpsFlowExecution.java:430) |
at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.start(CpsFlowExecution.java:393) |
at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:238) |
at hudson.model.ResourceController.execute(ResourceController.java:98) |
at hudson.model.Executor.run(Executor.java:404) |
Finished: FAILURE
Full console output here: https://gist.github.com/stephendonner/3b31a61c9456517888089ab025c63046
- is duplicated by
-
JENKINS-42857 Multi-line, concatenated-string values aren't parsed/passed in/to "environment" variable
- Closed
- links to