Run shell script on dumb node

12 views
Skip to first unread message

Robert Daniels

unread,
Feb 27, 2015, 9:21:16 AM2/27/15
to jenkins...@googlegroups.com
I have a dumb node set up, and noticed the Jenkins is dropping a slave.jar file into the directory I specified. However, what I don't grasp is what does this jar file execute, what is it looking for on the client?
I have a shell script I wrote to provision my slave with the correct environment variables and make the correct calls to run my test suite.

How do I point Jenkins to this shell script on the slave?

Les Mikesell

unread,
Feb 27, 2015, 10:57:24 AM2/27/15
to jenkinsci-users
Create a job, use the 'Restrict where this project can run' setting to
tie it to the node or label of the slave, add a build step of 'execute
shell'. The content of the script can be included in the job or you
could execute a file retrieved from any of the supported version
control repositories - or even provide an absolute path or use $PATH.
to find an existing file on the node.

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