Re: Run same Jenkins job on different repositories in parallel using Declarative Pipeline

2020-06-17 Thread 'monger_39' via Jenkins Users
Hi,not sure if your problem is now solved, so ..Try changing your code to use: w pipeline doesn't seem to achieve the goal:     pipeline {         agent any         options {             ansiColor('xterm')                             }         parameters {             extendedChoice description: '

Re: Run same Jenkins job on different repositories in parallel using Declarative Pipeline

2020-06-11 Thread Devin Nusbaum
The problem in your original code is that the stages you create (more specifically the closures for the stages) reference the mutable repo_name variable directly, and so after you create all the stages in the loop, repo_name’s value is the final repo in repo_names, so when the stages are execut

Re: Run same Jenkins job on different repositories in parallel using Declarative Pipeline

2020-06-11 Thread Roman O
The following code worked for me after following the example from docs : pipeline { agent any options { ansiColor('xterm') } parameters { extendedChoi

Re: Run same Jenkins job on different repositories in parallel using Declarative Pipeline

2020-06-11 Thread Roman O
The following code worked for me after following the example from docs : pipeline { agent any options { ansiColor('xterm') } parameters { extendedChoice description: '', multiSelectDelimiter: ',', name: 'REPO_NAMES', quoteValue

Run same Jenkins job on different repositories in parallel using Declarative Pipeline

2020-06-11 Thread Roman O
My goal is to run the same job check-single-repo on multiple repositories in parallel. Below pipeline doesn't seem to achieve the goal: pipeline { agent any options { ansiColor('xterm') } parameters { extendedChoice