Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 0 down vote accepted

Ok, found the solution:

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

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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