clientVM pipeline: parameterize region
following 6df4fa4b use a parameter instead
| | |
| | | '3.10.14', |
| | | ].join("\n") |
| | | |
| | | def region_choice = [ |
| | | 'na', |
| | | 'emea', |
| | | 'latam', |
| | | 'apac', |
| | | ].join("\n") |
| | | |
| | | pipeline { |
| | | agent any |
| | |
| | | description: 'Catalog item', |
| | | name: 'ocprelease', |
| | | ) |
| | | |
| | | choice( |
| | | choices: region_choice, |
| | | description: 'Region', |
| | | name: 'region', |
| | | ) |
| | | } |
| | | |
| | | stages { |
| | |
| | | def catalog = params.catalog_item.split(' / ')[0].trim() |
| | | def item = params.catalog_item.split(' / ')[1].trim() |
| | | def ocprelease = params.ocprelease.trim() |
| | | def region = params.region.trim() |
| | | echo "'${catalog}' '${item}'" |
| | | guid = sh( |
| | | returnStdout: true, |
| | |
| | | -c '${catalog}' \ |
| | | -i '${item}' \ |
| | | -G '${cf_group}' \ |
| | | -d 'check=t,quotacheck=t,ocprelease=${ocprelease},runtime=8,expiration=7,Region=na' |
| | | -d 'check=t,quotacheck=t,ocprelease=${ocprelease},runtime=8,expiration=7,region=${region}' |
| | | """ |
| | | ).trim() |
| | | |