How do I configure a Jenkins build to push a file to a specific server on the network?

50 views
Skip to first unread message

Kiran

unread,
Jan 29, 2016, 10:48:08 PM1/29/16
to Jenkins Users
I have Jenkins installed on a Linux server. It can run builds on itself. I want to create either a Freestyle Project or an External Job that transfers a bash script and runs it on two separate linux servers. Where in the GUI do I configure the destination server when I create a build? I have added "nodes" in the GUI. I can see the free space of the servers in the Jenkins GUI, so I know the credentials work. But when I create a build, I see no field that would tell Jenkins to push the bash scripts and run them on certain servers.

Victor Martinez

unread,
Jan 31, 2016, 12:16:25 PM1/31/16
to Jenkins Users
You can use the below plugins:

Then you can configure your job to run certain scripts among different machines.

I hope it helps

Kiran

unread,
Feb 1, 2016, 7:25:41 AM2/1/16
to Jenkins Users
I have those installed.  I click "New Item."  I have some options.  Where in the "New Item" options do I configure the machine (e.g., DNS name)?

Victor Martinez

unread,
Feb 1, 2016, 7:40:20 AM2/1/16
to Jenkins Users
Probably in your global settings http://YOUR_JENKINS_URL/configure

Eric Pyle

unread,
Feb 1, 2016, 8:51:26 AM2/1/16
to jenkins...@googlegroups.com
If I understand the question, you check "Restrict where this project can be run" in the job configuration to control where to run the job, assuming that the machine where you want to run it is a Jenkins slave.

Eric
--
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-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/11cb70d5-813d-4006-8660-c52b03de12b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages