Skip to content

Commit

Permalink
Updated the run_polices list error & added emial to Jenkins failed sc…
Browse files Browse the repository at this point in the history
…ripts (#389)

Co-authored-by: AARAVETI THIRUMALESH <athiruma@athiruma.remote.csb>
  • Loading branch information
athiruma and AARAVETI THIRUMALESH committed Mar 30, 2022
1 parent 494f652 commit 259e922
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions jenkins/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ pipeline {
ES_HOST = credentials('cloud-governance-es-host')
ES_PORT = credentials('cloud-governance-es-port')
GITHUB_TOKEN = credentials('cloud-governance-git-access-token')
contact = "ebattat@redhat.com"
contact1 = "ebattat@redhat.com"
contact2 = "athiruma@redhat.com"
}
stages {
stage('Image Cleanup'){
Expand Down Expand Up @@ -64,7 +65,7 @@ pipeline {
Jenkins job: ${env.BUILD_URL}\nSee the console output for more details: ${env.BUILD_URL}consoleFull\n\n
""",
subject: msg,
to: env.contact
to: "${env.contact1}, ${env.contact2}"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion jenkins/run_policies.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def get_custodian_policies(type: str = None):


print('Run all policies pre active region')
regions = ['us-east-1' 'us-east-2' 'us-west-1' 'us-west-2' 'eu-central-1', 'ap-south-1', 'eu-north-1', 'ap-northeast-1', 'ap-southeast-1', 'ap-southeast-2', 'eu-south-1', 'eu-west-3', 'sa-east-1']
regions = ['us-east-1', 'us-east-2', 'us-west-1', 'us-west-2', 'eu-central-1', 'ap-south-1', 'eu-north-1', 'ap-northeast-1', 'ap-southeast-1', 'ap-southeast-2', 'eu-south-1', 'eu-west-3', 'sa-east-1']
policies = get_custodian_policies()

for region in regions:
Expand Down
2 changes: 1 addition & 1 deletion jenkins/run_upload_es.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def get_custodian_policies(type: str = None):
return custodian_policies


regions = ['us-east-1', 'us-east-2', 'us-west-1', 'us-west-2', 'eu-central-1']
regions = ['us-east-1', 'us-east-2', 'us-west-1', 'us-west-2', 'eu-central-1', 'ap-south-1', 'eu-north-1', 'ap-northeast-1', 'ap-southeast-1', 'ap-southeast-2', 'eu-south-1', 'eu-west-3', 'sa-east-1']

print("Upload data to ElasticSearch - ec2 index")
policies = get_custodian_policies(type='ec2')
Expand Down

0 comments on commit 259e922

Please sign in to comment.