diff --git a/devops/jobs/ListMysqlProcess.groovy b/devops/jobs/ListMysqlProcess.groovy index d48f2832a..f72139aff 100644 --- a/devops/jobs/ListMysqlProcess.groovy +++ b/devops/jobs/ListMysqlProcess.groovy @@ -37,10 +37,16 @@ class ListMysqlProcess { rdsignore = "${rdsignore}-i ${ignore} " } + def regioninclude = "" + configuration.REGION_LIST.each { include -> + regioninclude = "${regioninclude}-r ${include} " + } + environmentVariables { env('AWS_DEFAULT_REGION', extraVars.get('REGION')) env('ENVIRONMENT', environment) env('RDSIGNORE', rdsignore) + env('REGIONINCLUDE', regioninclude) } multiscm { diff --git a/devops/resources/list-mysql-process.sh b/devops/resources/list-mysql-process.sh index c811c905e..1d86c8e8c 100644 --- a/devops/resources/list-mysql-process.sh +++ b/devops/resources/list-mysql-process.sh @@ -22,5 +22,8 @@ set -x if [[ ! -v RDSIGNORE ]]; then RDSIGNORE="" fi +if [[ ! -v REGIONINCLUDE ]]; then + REGIONINCLUDE="" +fi -python list_mysql_process.py --environment ${ENVIRONMENT} ${RDSIGNORE} +python list_mysql_process.py --environment ${ENVIRONMENT} ${RDSIGNORE} ${REGIONINCLUDE}