I
I
Ivan2019-06-26 14:44:38
Continuous Integration
Ivan, 2019-06-26 14:44:38

How to execute pipeline on the required stage?

There is a pipeline with the stage1/stage2 (Webtarget) selection parameter.
Only the if construct comes to mind when choosing the right server

if ("${params.Webtarget}" == "stage1")
. Are there any other ways, otherwise the pipeline will be too long because there are 10 test servers.
Thank you

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Shitskov, 2019-06-26
@Zarom

I offer this option. Use the Extensible Choice Parameter Plugin, where you can specify stage1/stage2 for Description and actual server addresses for Value.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question