0

I have a Jenkins set up on a remote server (linux) and I need to add a variable environment (to use Phing, or anything else, as my question is not related to this specific tool).

This is what I tried : Configure Jenkins server -> Global properties -> tick Environment variables

-> name=PHING_HOME, value=/path/to/phing

-> name=PATH, value=$PHING_HOME/bin:$PATH

Tried the same thing on the master node configuration. No difference.

After restarting, when I look at my job properties, PHING_HOME is added but is not shown in PATH variable. Also, neither changes are reflected on the general properties of Jenkins.

What did I do wrong ?

Mick
  • 5
  • 2
  • 5
  • Are you just trying to get the path to the phing command, so you can run it at all? Or are you trying to pass custom paths to phing? – eddiemoya Mar 13 '14 at 22:10
  • I am just looking for a way to add the path to phing. – Mick Mar 14 '14 at 15:28
  • lol, I think my questions wasn't precise enough in language. When I run phing in my repo, I type "vendor/bin/phing" because thats where the phing program is. However, I have other settings that define where I want things built and deployed to, like "/project/files" and "/nginx/docroot" - that sort of thing. Which are you asking about? The path to run the phing program at all, or about paths to pass into phing so it knows what files to handle? – eddiemoya Mar 14 '14 at 19:41
  • Neither actually. What I mean is : phing is not recognized as a program by jenkins since it's not in the environment variables. On my local machine (windows) I just go to : Computer > Properties > Advanced system settings > Environment variables > add the path to phing On the remote machine I can only add a path by using the jenkins settings, or "worst case" maybe add path in linux conf files (I have access with winscp) – Mick Mar 14 '14 at 22:27
  • http://stackoverflow.com/questions/5818403/jenkins-hudson-environment-variables – gliptak Nov 07 '16 at 20:07

0 Answers0