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
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.