[JIRA] (JENKINS-42281) Allow appending to the PATH in environment sections

1 view
Skip to first unread message

nevin2792@gmail.com (JIRA)

unread,
Feb 23, 2017, 9:12:01 AM2/23/17
to jenkinsc...@googlegroups.com
Conor Nevin created an issue
 
Jenkins / Improvement JENKINS-42281
Allow appending to the PATH in environment sections
Issue Type: Improvement Improvement
Assignee: Andrew Bayer
Components: pipeline-model-definition-plugin
Created: 2017/Feb/23 2:11 PM
Labels: declarative pipeline
Priority: Minor Minor
Reporter: Conor Nevin

You should be able to append to the path in the environment sections of a pipeline. Scripted pipelines support this through PATH+WHATEVER syntax in the `withEnv` step.

Attempting to use PATH = "$

{PATH}

:..." at a top level results in this error being thrown "groovy.lang.MissingPropertyException: No such property: PATH", and attempting to use PATH+WHATEVER results in "(PATH + GO) is a binary expression, but it should be a variable expression"

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

andrew.bayer@gmail.com (JIRA)

unread,
Feb 23, 2017, 3:38:01 PM2/23/17
to jenkinsc...@googlegroups.com
Andrew Bayer commented on Improvement JENKINS-42281
 
Re: Allow appending to the PATH in environment sections

Hmmmmmm. Good question. PATH+WHATEVER definitely won't work as something to set, and PATH isn't yet available at the time we're processing the environment, so we need some way to let you get to PATH+WHATEVER...

andrew.bayer@gmail.com (JIRA)

unread,
Feb 28, 2017, 4:07:01 PM2/28/17
to jenkinsc...@googlegroups.com
Andrew Bayer started work on Improvement JENKINS-42281
 
Change By: Andrew Bayer
Status: Open In Progress

andrew.bayer@gmail.com (JIRA)

unread,
Feb 28, 2017, 4:07:01 PM2/28/17
to jenkinsc...@googlegroups.com

Ah-ha, just realized that https://github.com/jenkinsci/pipeline-model-definition-plugin/pull/110 should actually let us do this, with some parsing changes...

andrew.bayer@gmail.com (JIRA)

unread,
Feb 28, 2017, 4:22:03 PM2/28/17
to jenkinsc...@googlegroups.com

Grr, nope. That doesn't work after all - the compilation error is hitting too soon.

bitwiseman@gmail.com (JIRA)

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

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