-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removed the env variable in scripts #864
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,9 @@ pipeline { | |
contact4 = "[email protected]" | ||
// Find the all available policies: https://github.com/redhat-performance/cloud-governance/tree/main/cloud_governance/policy | ||
// By default, all policies are running in dry_run="yes" mode and the whole list can be found in run_policies.py | ||
// POLICIES_IN_ACTION: Policies that run in the dry_run="no" mode | ||
POLICIES_IN_ACTION = '["unattached_volume", "ip_unattached", "zombie_snapshots", "unused_nat_gateway", "s3_inactive", "empty_roles"]' | ||
|
||
} | ||
stages { | ||
stage('Checkout') { // Checkout (git clone ...) the projects repository | ||
|
@@ -76,10 +79,6 @@ pipeline { | |
withCredentials([string(credentialsId: "${account}-aws-access-key-id", variable: 'access_key'), | ||
string(credentialsId: "${account}-aws-secret-key-id", variable: 'secret_key'), | ||
string(credentialsId: "${account}-s3-bucket", variable: 's3_bucket')]) { | ||
// POLICIES_IN_ACTION: Policies that run in the dry_run="no" mode | ||
env.POLICIES_IN_ACTION = '["unattached_volume", "ip_unattached", "zombie_snapshots", "unused_nat_gateway", "s3_inactive", "empty_roles"]' | ||
if (account == "blueprints") | ||
env.POLICIES_IN_ACTION = '["unattached_volume", "ip_unattached", "zombie_snapshots", "unused_nat_gateway", "s3_inactive", "empty_roles", "zombie_cluster_resource"]' | ||
env.account_name = "${account}" | ||
env.ADMIN_MAIL_LIST = "${accounts_list[account]}" | ||
sh 'python3 jenkins/tenant/aws/common/run_policies.py' | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why did u delete "zombie_cluster_resource" ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to simulate the old scenario. After adding the zombie_cluster_resources policy it behaving wiered.