cannot run ant on mac os x slave

160 views
Skip to first unread message

Sergey Solozhentsev

unread,
Oct 16, 2015, 5:24:14 AM10/16/15
to Jenkins Users
Hi I'm using Jenkins 1.633. master on windows slave on mac os x El capitan. Mac os X slave is started from LaunchDaemons plist. 

I'm trying to execute ant script on mac os x slave but jenkins does not find ant.
I installed ant using brew. ant -version from terminal shows correct version.

If I use Invoke Ant task - it says me that cannot find program.
When I start using shell script it shows me a message that ant in unknown command.

How to execute ant on mac os x slave?

Sergey Solozhentsev

unread,
Oct 16, 2015, 5:25:18 AM10/16/15
to Jenkins Users
I forgot to mention that I was trying to set node tool path for ant but it seems it ignore it.

Victor Martinez

unread,
Oct 16, 2015, 7:05:08 AM10/16/15
to Jenkins Users

You might need to check whether that shell session contains the right environment path variables

path environment variable via bashrc doesn't work as expected since jenkins ssh slaves run as non interactive ssh so you will need to configure your /etc/ssh/config accordingly, I guess so.

Cheers

Sergey Solozhentsev

unread,
Oct 16, 2015, 8:04:27 AM10/16/15
to Jenkins Users
Thanks for response. You are tight the issue is the PATH does not contains /usr/local/bin.
I do not start slave using ssh. And I cannot find a place where I must set correct PATH environment variable. Even If I set this variable for slave node I have the same result. I do not understand where PATH variable is set. becuase everywhere I see in global paths  /usr/local/bin exists.

Probably slave tries to get PATH from Windows master?

пятница, 16 октября 2015 г., 14:05:08 UTC+3 пользователь Victor Martinez написал:
Reply all
Reply to author
Forward
0 new messages