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

2020-06-11 Thread Roman O
] } parallel single_repo_jobs } } } } } On Thursday, June 11, 2020 at 4:49:15 PM UTC+3, Roman O wrote: &g

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

2020-06-11 Thread Roman O
7;,') def single_repo_jobs = repo_names.collectEntries { ["${it}" : { catchError { stage(it) { build job: 'check-single-repo', parameters: [ string(name:'REPO_NAME', value: "${it}") ] } } } ] } parallel single_repo_jobs } } On Thursday, June 11

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