[JIRA] (JENKINS-42857) Multi-line, concatenated-string values aren't parsed/passed in/to "environment" variable

1 view
Skip to first unread message

stephen.donner@gmail.com (JIRA)

unread,
Mar 16, 2017, 3:55:01 PM3/16/17
to jenkinsc...@googlegroups.com
Stephen Donner created an issue
 
Jenkins / Bug JENKINS-42857
Multi-line, concatenated-string values aren't parsed/passed in/to "environment" variable
Issue Type: Bug Bug
Assignee: Andrew Bayer
Components: pipeline-model-definition-plugin
Created: 2017/Mar/16 7:54 PM
Environment: Jenkins 2.32.2
Pipeline Model Definition Plugin 1.1.1 (and all associated/dependent plugins, same/greater versions)
Priority: Minor Minor
Reporter: Stephen Donner

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" }
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e)
Atlassian logo

andrew.bayer@gmail.com (JIRA)

unread,
Mar 16, 2017, 11:52:01 PM3/16/17
to jenkinsc...@googlegroups.com

dave.hunt@gmail.com (JIRA)

unread,
Mar 17, 2017, 7:15:01 AM3/17/17
to jenkinsc...@googlegroups.com
Dave Hunt resolved as Duplicate
 
Change By: Dave Hunt
Status: Open Resolved
Resolution: Duplicate

stephen.donner@gmail.com (JIRA)

unread,
Mar 17, 2017, 2:27:02 PM3/17/17
to jenkinsc...@googlegroups.com

bitwiseman@gmail.com (JIRA)

unread,
Oct 22, 2019, 11:25:47 PM10/22/19
to jenkinsc...@googlegroups.com
Liam Newman closed an issue as Duplicate
 

Bulk closing resolved issues.

Change By: Liam Newman
Status: Resolved Closed
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages