From 535a46d1ed0e7b905baa6f82a12a484867e739ba Mon Sep 17 00:00:00 2001 From: BBBmau Date: Thu, 15 Aug 2024 11:16:28 -0700 Subject: [PATCH] set defaultbranchname to nightly-test --- .../terraform/.teamcity/components/builds/build_triggers.kt | 2 +- mmv1/third_party/terraform/.teamcity/components/constants.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mmv1/third_party/terraform/.teamcity/components/builds/build_triggers.kt b/mmv1/third_party/terraform/.teamcity/components/builds/build_triggers.kt index 2880d5015abd..74e4c3980852 100644 --- a/mmv1/third_party/terraform/.teamcity/components/builds/build_triggers.kt +++ b/mmv1/third_party/terraform/.teamcity/components/builds/build_triggers.kt @@ -37,7 +37,7 @@ fun Triggers.runNightly(config: NightlyTriggerConfiguration) { schedule{ enabled = config.nightlyTestsEnabled - branchFilter = "+:" + config.branch // returns "+:/refs/heads/main" if default + branchFilter = "+:" + config.branch // returns "+:/refs/heads/nightly-test" if default triggerBuild = always() // Run build even if no new commits/pending changes withPendingChangesOnly = false enforceCleanCheckout = true diff --git a/mmv1/third_party/terraform/.teamcity/components/constants.kt b/mmv1/third_party/terraform/.teamcity/components/constants.kt index 0f9b6ef92c54..8125f910b883 100644 --- a/mmv1/third_party/terraform/.teamcity/components/constants.kt +++ b/mmv1/third_party/terraform/.teamcity/components/constants.kt @@ -25,7 +25,7 @@ const val DefaultDaysOfWeek = "*" const val DefaultDaysOfMonth = "*" // This represents the default branch to be used for testing -const val DefaultBranchName = "refs/heads/main" +const val DefaultBranchName = "refs/heads/nightly-test" // Value used to make long-running builds fail due to a timeout const val DefaultBuildTimeoutDuration = 60 * 12 // 12 hours in minutes