On Fri, May 2, 2014 at 10:56 AM, John Park <john.p...@sightlinesystems.com> wrote: > Hi Les, > > OK, I think I get what you're saying, so this is what I did: > > I set ant and java globally in jenkins and pointed java home and ant home to > directories on the jenkins machine (master) > > I then added those global settings to my slave node.
On the slave node config, the path should be to the location on that slave. At least if it is different from the global entry. > I then added a build step to invoke ant, added the global ant setting, added > which target i wanted to run, included the path to the build.xml on the > slave machine. > > I ran the job, but it still failed incidcating that it could not find the > specified path to the build.xml.. It expects build.xml to be in the root of the (usually checked-out from SCM) workspace. Or you can give an explict path if it is elsewhere for some reason. > I'm convinced that Jenkins (master) is not properly delegating my job to the > slave machine...to test this, I had ant execute a simple test batch file i > created to echo "hello world" from the slave, but I got a message saying > that it didn't recognize tha batch file...I then tested this locally from a > command prompt on the jenkins server, where the .bat doesn't exist, and got > the same message. You should see which node ran a job over at the top left of the build # page. > Again, thanks for the input and advice, but I think the root of my problem > here is getting the master to properly delagate control to the slave > machine. That is controlled by the 'restrict where job can run' item in the job config. You can use nodenames or labels there. It is a good idea to always give the nodes labels according to their capabilities and restrict jobs to labels since that makes it easy to add more nodes for certain build types as the load increases or to fail over as slaves are down/replaced. -- Les Mikesell lesmikes...@gmail.com -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.