Skip to content

Commit

Permalink
TeamCity : Skip google_project sweeper in Beta projects (#8756) (#1…
Browse files Browse the repository at this point in the history
…6534)

* Add `SKIP_PROJECT_SWEEPER` to Beta projects only

* Adding log to project sweeper so skip decision is in logs

* Make the param an environment variable instead of configuration parameter

* Remove log about skipping project sweeper
[upstream:184b2f168d1320cfb1d2c557433bd29e01afa116]

Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician authored Nov 14, 2023
1 parent 15557f4 commit 241ee7e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/8756.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:none

```
2 changes: 1 addition & 1 deletion .teamcity/components/generated/project.kt
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ fun Google(environment: String, projDescription: String, manualVcsRoot: Absolute
// Adding this allows custom builds to use alternative branches. E.g. testing release branches in the downstreams

params {
// Controls the VCS root, and allows custom builds to point at different branches
param("BRANCH_NAME", branchRef)

// Not used, but making `environment` a param makes the value visible to non-admins in TeamCity
param("ENVIRONMENT", environment)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ func init() {
// already be in-progress.
// Example: SKIP_PROJECT_SWEEPER=1 go test ./google -v -sweep=us-central1 -sweep-run=
if os.Getenv("SKIP_PROJECT_SWEEPER") != "" {
// No logging here - see https://github.com/GoogleCloudPlatform/magic-modules/pull/7439
return
}

Expand Down

0 comments on commit 241ee7e

Please sign in to comment.