Dear community,
I have an issue / question about mac node, path settings and sh command from pipeline.
I add a path to cmake program in /etc/paths on mac node.
All users can call cmake in terminal without using the complete program path - just call cmake.
Are you using ssh to connect to the node? If so, environment files are not sourced in that case, so that paths file will not be used. Adding it to the environment in the pipeline is probably the way to go to make sure you are using the correct cmake.
Thanks very much for the very fast answer.
And yes I use ssh.
One more question - I did this exactly the same way on a windows node.
Add paths to the system environment variables and here it runs perfectly.
So Windows and Mac will work differenty with path settings?
Yes, the path behaves differently on Windows and Unix. If you set the path in the system properties on Windows, it will apply to all users regardless if environment files are sourced or not, this is specific to Windows because Windows uses the registry for things like this. On Unix varieties, if the file is not sourced somehow, then it won’t take affect for that session.