Publish Over SSH - Multiple Servers

339 views
Skip to first unread message

Vince Guaglione

unread,
Sep 22, 2015, 12:00:32 PM9/22/15
to Jenkins Users
I have a promotion process that uses the publish over SSH plugin to transfer files to two servers following a build.  I'm wondering if I can optionally turn off the transfer to one of the two servers via the build job or within the promotion process?  Is this doable?

To further clarify, we take one server out of rotation for maintenance and wish to push new builds to this server without affecting the other.  The current job was reconfigured to use two promotion processes, one for each server.  We'd like to use one promotion process instead, but have the option to push to either server or both.  Is this something that is available within Jenkins?

Baptiste Mathus

unread,
Sep 22, 2015, 3:55:31 PM9/22/15
to jenkins...@googlegroups.com

One possibility would be using a conditional build step and some condition to enable the push.

See https://wiki.jenkins-ci.org/display/JENKINS/Conditional+BuildStep+Plugin

Cheers

Le 22 sept. 2015 6:00 PM, "Vince Guaglione" <vince.g...@gmail.com> a écrit :
I have a promotion process that uses the publish over SSH plugin to transfer files to two servers following a build.  I'm wondering if I can optionally turn off the transfer to one of the two servers via the build job or within the promotion process?  Is this doable?

To further clarify, we take one server out of rotation for maintenance and wish to push new builds to this server without affecting the other.  The current job was reconfigured to use two promotion processes, one for each server.  We'd like to use one promotion process instead, but have the option to push to either server or both.  Is this something that is available within Jenkins?

--
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/9e5f28c9-3561-4da2-8d57-1e2ccd913101%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vince Guaglione

unread,
Sep 23, 2015, 9:11:57 AM9/23/15
to Jenkins Users
Thanks for the option.  I'll take a look at the plug in.
Reply all
Reply to author
Forward
0 new messages