Skip to content

Commit

Permalink
Make 6.0 project builds use feature branch
Browse files Browse the repository at this point in the history
  • Loading branch information
SarahFrench committed Jul 8, 2024
1 parent ef55f56 commit fd1a227
Showing 1 changed file with 14 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,21 +17,24 @@ import replaceCharsId

const val branchName = "FEATURE-BRANCH-major-release-6.0.0"


// VCS Roots specifically for pulling code from the feature branches in the downstream repos

object HashicorpVCSRootGa_featureBranchMajorRelease600: GitVcsRoot({
name = "VCS root for the hashicorp/terraform-provider-${ProviderNameGa} repo @ refs/heads/${branchName}"
url = "https://github.com/hashicorp/terraform-provider-${ProviderNameGa}"
branch = "refs/heads/${branchName}"
branchSpec = "" // empty as we'll access no other branches
branchSpec = """
+:FEATURE-BRANCH-major-release-6*
""".trimIndent()
})

object HashicorpVCSRootBeta_featureBranchMajorRelease600: GitVcsRoot({
name = "VCS root for the hashicorp/terraform-provider-${ProviderNameBeta} repo @ refs/heads/${branchName}"
url = "https://github.com/hashicorp/terraform-provider-${ProviderNameBeta}"
branch = "refs/heads/${branchName}"
branchSpec = "" // empty as we'll access no other branches
branchSpec = """
+:FEATURE-BRANCH-major-release-6*
""".trimIndent()
})

fun featureBranchMajorRelease600_Project(allConfig: AllContextParameters): Project {
Expand Down Expand Up @@ -64,7 +67,10 @@ fun featureBranchMajorRelease600_Project(allConfig: AllContextParameters): Proje
ProviderNameGa,
HashicorpVCSRootGa_featureBranchMajorRelease600,
gaConfig,
NightlyTriggerConfiguration(daysOfWeek="5"), // Thursday for GA, TeamCity numbers days Sun=1...Sat=7
NightlyTriggerConfiguration(
branch = branchName, // Make triggered builds use the feature branch
daysOfWeek = "5" // Thursday for GA, TeamCity numbers days Sun=1...Sat=7
),
)
)
}
Expand All @@ -81,7 +87,10 @@ fun featureBranchMajorRelease600_Project(allConfig: AllContextParameters): Proje
ProviderNameBeta,
HashicorpVCSRootBeta_featureBranchMajorRelease600,
betaConfig,
NightlyTriggerConfiguration(daysOfWeek="6"), // Friday for Beta, TeamCity numbers days Sun=1...Sat=7
NightlyTriggerConfiguration(
branch = 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 fd1a227

Please sign in to comment.