0

I have two server as a target machines: dev and production. They're both connected to the Jenkins by "Publish over SSH" plugin.

And now I want to choose which one is being used for a target. But in project configuration, the only thing I can do with target server is to use it as by choosing from fixed list which - AFAIK - is not parametrized.

What I want - as a parameter I choose dev/prod and - based on that choice - I want to specify a target machine.

Is it possible to achieve using pure-Jenkins solutions or plugins?

0

Ok, found the solution: https://wiki.jenkins-ci.org/display/JENKINS/Flexible+Publish+Plugin

Will test and mark as accepted if it's correct.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.