How to extend $PATH used by Jenkins?

Skip to first unread message

Daniel Anechitoaie

unread,
Nov 10, 2015, 4:58:22 PM11/10/15
to Jenkins Users
Hi,

I have some stuff installed in /opt/ 

How can I add this to $PATH so that it's visible in Jenkins?

Baptiste Mathus

unread,
Nov 11, 2015, 4:52:30 PM11/11/15
to jenkins...@googlegroups.com
Well, add this to PATH in the associated shell step, or use the full path. Or tell us a bit more what you're trying to do.

Cheers

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/7931e201-d388-49c9-a86c-18da22f801e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Baptiste <Batmat> MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !

Jochen Hayek

unread,
Nov 25, 2015, 3:32:40 AM11/25/15
to Jenkins Users
Have a look at the "Build Environment" section, particularly at "Properties Content"!

You can make use of environment variables there,
and you can assign values to environment variables, but only once per variable.

But you can do things like this:

PATH1=$HOME/bin:$PATH
PATH=$HOME/shell:$PATH1

Have a look at the online help! (-> "?")

Daniel Beck

unread,
Nov 25, 2015, 7:27:54 AM11/25/15
to Jenkins Users

On 25.11.2015, at 09:32, Jochen Hayek <jochen...@hayek.name> wrote:

> Have a look at the "Build Environment" section, particularly at "Properties Content"!

… which is provided by the EnvInject Plugin.
Reply all
Reply to author
Forward
0 new messages