From c971afded6d78464dd4e9365bed271476a4b1b6c Mon Sep 17 00:00:00 2001 From: tombuildsstuff Date: Fri, 23 Jun 2023 07:25:32 +0200 Subject: [PATCH] tooling: updating the TeamCity configuration --- .github/workflows/gen-teamcity.yml | 5 +++-- .teamcity/.java-version | 2 +- .teamcity/GNUmakefile | 7 +++++++ .teamcity/components/service_build_config.kt | 12 ++++++------ .teamcity/pom.xml | 18 ++++++++++-------- .teamcity/settings.kts | 12 ++++++------ 6 files changed, 33 insertions(+), 23 deletions(-) create mode 100644 .teamcity/GNUmakefile diff --git a/.github/workflows/gen-teamcity.yml b/.github/workflows/gen-teamcity.yml index 46303161731..ea92fbed087 100644 --- a/.github/workflows/gen-teamcity.yml +++ b/.github/workflows/gen-teamcity.yml @@ -17,9 +17,10 @@ jobs: - uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # v3.11.0 with: distribution: adopt - java-version: 11 + java-version: 17 cache: maven - name: Build TeamCity Configuration run: | cd .teamcity - mvn org.jetbrains.teamcity:teamcity-configs-maven-plugin:generate + make tools + make validate diff --git a/.teamcity/.java-version b/.teamcity/.java-version index 5f3c84a4912..0b495a50c11 100644 --- a/.teamcity/.java-version +++ b/.teamcity/.java-version @@ -1 +1 @@ -corretto64-11.0.13 +corretto64-17.0.7 diff --git a/.teamcity/GNUmakefile b/.teamcity/GNUmakefile new file mode 100644 index 00000000000..667ef9283a4 --- /dev/null +++ b/.teamcity/GNUmakefile @@ -0,0 +1,7 @@ +default: tools + +tools: + mvn -U dependency:sources + +validate: + mvn teamcity-configs:generate diff --git a/.teamcity/components/service_build_config.kt b/.teamcity/components/service_build_config.kt index 7619964a1ca..bb9ecd63138 100644 --- a/.teamcity/components/service_build_config.kt +++ b/.teamcity/components/service_build_config.kt @@ -1,10 +1,10 @@ import java.io.File -import jetbrains.buildServer.configs.kotlin.v2019_2.AbsoluteId -import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType -import jetbrains.buildServer.configs.kotlin.v2019_2.DslContext -import jetbrains.buildServer.configs.kotlin.v2019_2.ParameterDisplay -import jetbrains.buildServer.configs.kotlin.v2019_2.buildFeatures.notifications -import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.script +import jetbrains.buildServer.configs.kotlin.AbsoluteId +import jetbrains.buildServer.configs.kotlin.BuildType +import jetbrains.buildServer.configs.kotlin.DslContext +import jetbrains.buildServer.configs.kotlin.ParameterDisplay +import jetbrains.buildServer.configs.kotlin.buildFeatures.notifications +import jetbrains.buildServer.configs.kotlin.buildSteps.script data class ServiceSpec( val readableName: String, diff --git a/.teamcity/pom.xml b/.teamcity/pom.xml index 75834555f55..ba5c9571263 100644 --- a/.teamcity/pom.xml +++ b/.teamcity/pom.xml @@ -1,9 +1,9 @@ 4.0.0 - AWS TeamCity Config DSL Script - TeamCity-Config-DSL-Script - TeamCity-Config-DSL-Script + Terraform-Provider-AWS Config DSL Script + TerraformProviderAWS + TerraformProviderAWS 1.0-SNAPSHOT @@ -22,7 +22,7 @@ teamcity-server - https://ci-oss.hashicorp.engineering/app/dsl-plugins-repository + https://teamcity.jetbrains.com/app/dsl-plugins-repository true @@ -70,10 +70,12 @@ kotlin target/generated-configs - + + --> @@ -82,13 +84,13 @@ org.jetbrains.teamcity - configs-dsl-kotlin + configs-dsl-kotlin-latest ${teamcity.dsl.version} compile org.jetbrains.teamcity - configs-dsl-kotlin-plugins + configs-dsl-kotlin-plugins-latest 1.0-SNAPSHOT pom compile diff --git a/.teamcity/settings.kts b/.teamcity/settings.kts index 31dafafbb10..f323f5cc022 100644 --- a/.teamcity/settings.kts +++ b/.teamcity/settings.kts @@ -1,15 +1,15 @@ -import jetbrains.buildServer.configs.kotlin.v2019_2.* // ktlint-disable no-wildcard-imports -import jetbrains.buildServer.configs.kotlin.v2019_2.buildFeatures.golang -import jetbrains.buildServer.configs.kotlin.v2019_2.buildFeatures.notifications -import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.script -import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.schedule +import jetbrains.buildServer.configs.kotlin.* // ktlint-disable no-wildcard-imports +import jetbrains.buildServer.configs.kotlin.buildFeatures.golang +import jetbrains.buildServer.configs.kotlin.buildFeatures.notifications +import jetbrains.buildServer.configs.kotlin.buildSteps.script +import jetbrains.buildServer.configs.kotlin.triggers.schedule import java.io.File import java.time.Duration import java.time.LocalTime import java.time.ZoneId import java.time.format.DateTimeFormatter -version = "2020.2" +version = "2023.05" val defaultRegion = DslContext.getParameter("default_region") val alternateRegion = DslContext.getParameter("alternate_region", "")