slave script will not correctly execute binary

36 views
Skip to first unread message

Robert Daniels

unread,
Mar 2, 2015, 3:57:38 PM3/2/15
to jenkins...@googlegroups.com
i have a binary that i wrote from C that prepares folders on my file system prior to doing a git pull.

i am using a slave and everything works fine, until it attempts to execute this binary. (Which works properly when using a terminal on the slave).

i get a java usage error:

Usage: java [-options] class [args...] blah, blah.

For some reason it thinks this executable is a java file.

Any ideas?

Les Mikesell

unread,
Mar 2, 2015, 4:30:18 PM3/2/15
to jenkinsci-users
Does the console log show the actual command that was executed? Note
that the slave environment may not be the same as your terminal login
- perhaps it is finding a different executable with the same name.

--
Les Mikesell
lesmi...@gmail.com

Robert Daniels

unread,
Mar 3, 2015, 7:39:15 AM3/3/15
to jenkins...@googlegroups.com
Yeah, I thought that was the case before posting this, so I renamed the executable and got the same result.  Odd.

Robert Daniels

unread,
Mar 3, 2015, 7:41:13 AM3/3/15
to jenkins...@googlegroups.com
renamed it prep_my_build .... might be a java specific issue not recognizing it?


On Monday, March 2, 2015 at 4:30:18 PM UTC-5, LesMikesell wrote:

Les Mikesell

unread,
Mar 3, 2015, 8:31:58 AM3/3/15
to jenkinsci-users
On Tue, Mar 3, 2015 at 6:41 AM, Robert Daniels
<robertda...@gmail.com> wrote:
> renamed it prep_my_build .... might be a java specific issue not recognizing
> it?
>

Are you executing it in a shell script build step? It might help to
post the exact step typa and command and what the console log says.

--
Les Mikesell
lesmi...@gmail.com
Reply all
Reply to author
Forward
0 new messages