Hello Paul,

On Thu, Jan 17, 2019 at 10:03:26 -0800, Paul Ryan wrote:
> I am using an overrides.env file in my agent to set the PATH I need. I also 
> use it set some other environment variables but these do not appear to 
> work.  is this the intended behaviour?

There's a bug in 18.12, where the path is wrong. Thanks for bringing this up. 
It's fixed as a part of https://github.com/gocd/gocd/pull/5734 and will be out 
in 19.1, due next week.

The paths that work for the agent are:
  "~/Library/ApplicationSupport/Go Agent/overrides.env"
  "/etc/default/Go Agent"

The paths that work for the server are:
  "~/Library/ApplicationSupport/Go Server/overrides.env"
  "/etc/default/Go Server"

The bug is that it should be "Application Support" instead of 
"ApplicationSupport".

I was able to verify that this works by doing this:

  mkdir -p ~/Library/ApplicationSupport/Go\ Agent
  echo 'export PATH=/mypath:$PATH' >>~/Library/ApplicationSupport/Go\ 
Agent/overrides.env

... followed by a job run which print out the environment variables.

Cheers,
Aravind

-- 
You received this message because you are subscribed to the Google Groups 
"go-cd" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to