Skip to content

Commit

Permalink
fix: fix edge mysql monitoring job
Browse files Browse the repository at this point in the history
  • Loading branch information
syedimranhassan committed Dec 11, 2023
1 parent ce47cb9 commit e18a085
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions devops/jobs/ListMysqlProcess.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
5 changes: 4 additions & 1 deletion devops/resources/list-mysql-process.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}

0 comments on commit e18a085

Please sign in to comment.