Skip to content

Commit

Permalink
TeamCity: Fix references to branches in 6.0.0 testing projects (Googl…
Browse files Browse the repository at this point in the history
  • Loading branch information
SarahFrench authored Jul 11, 2024
1 parent 6d7694e commit f6d628a
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ object HashicorpVCSRootGa_featureBranchMajorRelease600: GitVcsRoot({
url = "https://github.com/hashicorp/terraform-provider-${ProviderNameGa}"
branch = "refs/heads/${branchName}"
branchSpec = """
+:FEATURE-BRANCH-major-release-6*
+:(refs/heads/*)
-:refs/pulls/*
""".trimIndent()
})

Expand All @@ -33,7 +34,8 @@ object HashicorpVCSRootBeta_featureBranchMajorRelease600: GitVcsRoot({
url = "https://github.com/hashicorp/terraform-provider-${ProviderNameBeta}"
branch = "refs/heads/${branchName}"
branchSpec = """
+:FEATURE-BRANCH-major-release-6*
+:(refs/heads/*)
-:refs/pulls/*
""".trimIndent()
})

Expand Down Expand Up @@ -68,7 +70,7 @@ fun featureBranchMajorRelease600_Project(allConfig: AllContextParameters): Proje
HashicorpVCSRootGa_featureBranchMajorRelease600,
gaConfig,
NightlyTriggerConfiguration(
branch = branchName, // Make triggered builds use the feature branch
branch = "refs/heads/${branchName}", // Make triggered builds use the feature branch
daysOfWeek = "5" // Thursday for GA, TeamCity numbers days Sun=1...Sat=7
),
)
Expand All @@ -88,7 +90,7 @@ fun featureBranchMajorRelease600_Project(allConfig: AllContextParameters): Proje
HashicorpVCSRootBeta_featureBranchMajorRelease600,
betaConfig,
NightlyTriggerConfiguration(
branch = branchName, // Make triggered builds use the feature branch
branch = "refs/heads/${branchName}", // Make triggered builds use the feature branch
daysOfWeek="6" // Friday for Beta, TeamCity numbers days Sun=1...Sat=7
),
)
Expand Down

0 comments on commit f6d628a

Please sign in to comment.