Skip to content

Commit 41fad43

Browse files
committed
fix skip policy
1 parent df43402 commit 41fad43

4 files changed

Lines changed: 6 additions & 5 deletions

File tree

cloud_governance/policy/common_policies/send_aggregated_alerts.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
from datetime import datetime, timedelta, timezone
21

32
import pandas
3+
from datetime import datetime, timedelta, timezone
4+
45
from cloud_governance.common.elasticsearch.elasticsearch_operations import ElasticSearchOperations
56
from cloud_governance.common.logger.logger_time_stamp import logger_time_stamp
67
from cloud_governance.common.mails.mail_message import MailMessage

jenkins/tenant/aws/ecoeng_01/PolicyJenkinsfileDaily

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ pipeline {
4141
// By default, all policies are running in dry_run="yes" mode and the whole list can be found in run_policies.py
4242
// POLICIES_IN_ACTION: Policies that run in the dry_run="no" mode
4343
POLICIES_IN_ACTION = '["unattached_volume", "ip_unattached", "zombie_snapshots", "unused_nat_gateway", "s3_inactive", "empty_roles", "zombie_cluster_resource"]'
44-
SKIP_POLICIES_ALERT = ["unused_access_key"]
44+
SKIP_POLICIES_ALERT = '["unused_access_key"]'
4545
}
4646
stages {
4747
stage('Checkout') { // Checkout (git clone ...) the projects repository
@@ -80,7 +80,7 @@ pipeline {
8080
string(credentialsId: "${account}-aws-secret-key-id", variable: 'secret_key'),
8181
string(credentialsId: "${account}-s3-bucket", variable: 's3_bucket')]) {
8282
if (account == 'industry-partners') {
83-
env.SKIP_POLICIES_ALERT = []
83+
env.SKIP_POLICIES_ALERT = '[]'
8484
}
8585
env.account_name = "${account}"
8686
env.ADMIN_MAIL_LIST = "${accounts_list[account]}"

jenkins/tenant/aws/ecoeng_02/PolicyJenkinsfileDaily

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ pipeline {
2929
// By default, all policies are running in dry_run="yes" mode and the whole list can be found in run_policies.py
3030
// POLICIES_IN_ACTION: Policies that run in the dry_run="no" mode
3131
POLICIES_IN_ACTION = '["unattached_volume", "ip_unattached", "zombie_snapshots", "unused_nat_gateway", "s3_inactive", "empty_roles", "zombie_cluster_resource"]'
32-
SKIP_POLICIES_ALERT = ["unused_access_key"]
32+
SKIP_POLICIES_ALERT = '["unused_access_key"]'
3333
}
3434
stages {
3535
stage('Checkout') { // Checkout (git clone ...) the projects repository

jenkins/tenant/aws/ecoeng_03/PolicyJenkinsfileDaily

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pipeline {
2626
// By default, all policies are running in dry_run="yes" mode and the whole list can be found in run_policies.py
2727
// POLICIES_IN_ACTION: Policies that run in the dry_run="no" mode
2828
POLICIES_IN_ACTION = '["unattached_volume", "ip_unattached", "zombie_snapshots", "unused_nat_gateway", "s3_inactive", "empty_roles", "zombie_cluster_resource"]'
29-
SKIP_POLICIES_ALERT = ["unused_access_key"]
29+
SKIP_POLICIES_ALERT = '["unused_access_key"]'
3030
}
3131
stages {
3232
stage('Checkout') { // Checkout (git clone ...) the projects repository

0 commit comments

Comments
 (0)