Reputation: 31
here is my problem : I use jenkins v1.613, my job A is parameterized ( choice) of countries and I have a job B parameterized (List subversion tags) where the repository URL is like http://my-svn.com/xxx/{$country}/tags.
I create a multijob for "chaining" job A and B but after calling the job A, I'm waiting from jenkins to open me a new window with prompt on job B in order to select a tags from http://my-svn.com/xxx/spain/tags....no way
please help, any clues ??
Thanks
Upvotes: 1
Views: 8485
Reputation: 111555
This is indeed possible if you use the Workflow Plugin.
It's probably much more effort to set up than the answer from Slav, but workflow makes a lot of complicated setups possible.
In a workflow, you can define an input
step, which will pause and wait for user input.
This can prompt with a given message
and a list of parameters
, which function in the same way as a regular parameterised build. See this question for an example, or check out the documentation and workflow snippet generator.
Upvotes: 1
Reputation: 27485
Not going to happen, the way you described it. Jenkins is meant to be run automatically. It can take any number of parameters upfront before triggering the job, but it won't stop and prompt/wait for user once it is running.
You need to select the country
and tags
on the first screen (Job A) and then pass the tags
value to the downstream job.
Consider Dynamic Extended Choice Parameter plugin to achieve this in the same page. They have detailed instructions on the wiki.
Upvotes: 0