From 0e0041d941ba9a107e4466e9c810bfa0cbd79509 Mon Sep 17 00:00:00 2001 From: Reinhold Degenfellner Date: Thu, 4 Jan 2024 16:27:06 +0100 Subject: [PATCH] Remove teamcity directory config from team-city branch is used in future --- .teamcity/Buildship/EclipseVersion.kt | 30 -- .teamcity/Buildship/GitHubVcsRoot.kt | 33 -- .teamcity/Buildship/Jdk.kt | 24 -- .teamcity/Buildship/OS.kt | 6 - .teamcity/Buildship/Project.kt | 424 -------------------------- .teamcity/Buildship/ScenarioType.kt | 8 - .teamcity/Buildship/Trigger.kt | 58 ---- .teamcity/Buildship/extensions.kt | 59 ---- .teamcity/pom.xml | 137 --------- .teamcity/settings.kts | 33 -- 10 files changed, 812 deletions(-) delete mode 100644 .teamcity/Buildship/EclipseVersion.kt delete mode 100644 .teamcity/Buildship/GitHubVcsRoot.kt delete mode 100644 .teamcity/Buildship/Jdk.kt delete mode 100644 .teamcity/Buildship/OS.kt delete mode 100644 .teamcity/Buildship/Project.kt delete mode 100644 .teamcity/Buildship/ScenarioType.kt delete mode 100644 .teamcity/Buildship/Trigger.kt delete mode 100644 .teamcity/Buildship/extensions.kt delete mode 100644 .teamcity/pom.xml delete mode 100644 .teamcity/settings.kts diff --git a/.teamcity/Buildship/EclipseVersion.kt b/.teamcity/Buildship/EclipseVersion.kt deleted file mode 100644 index f94403ca64..0000000000 --- a/.teamcity/Buildship/EclipseVersion.kt +++ /dev/null @@ -1,30 +0,0 @@ -package Buildship - -enum class EclipseVersion(val codeName: String, val versionNumber: String) { - ECLIPSE4_8("Photon", "4.8"), - ECLIPSE4_9("2018-09", "4.9"), - ECLIPSE4_10("2018-12", "4.10"), - ECLIPSE4_11("2019-03", "4.11"), - ECLIPSE4_12("2019-06", "4.12"), - ECLIPSE4_13("2019-09", "4.13"), - ECLIPSE4_14("2019-12", "4.14"), - ECLIPSE4_15("2020-03", "4.15"), - ECLIPSE4_16("2020-06", "4.16"), - ECLIPSE4_17("2020-09", "4.17"), - ECLIPSE4_18("2020-12", "4.18"), - ECLIPSE4_19("2021-03", "4.19"), - ECLIPSE4_20("2021-06", "4.20"), - ECLIPSE4_21("2021-09", "4.21"), - ECLIPSE4_22("2021-12", "4.22"), - ECLIPSE4_23("2022-03", "4.23"), - ECLIPSE4_24("2022-06", "4.24"), - ECLIPSE4_25("2022-09", "4.25"), - ECLIPSE4_26("2022-12", "4.26"), - ECLIPSE4_27("2023-03", "4.27"); - - val updateSiteVersion: String - get() = versionNumber.replace(".", "") - - val isLatest: Boolean - get() = this == values().last() -} \ No newline at end of file diff --git a/.teamcity/Buildship/GitHubVcsRoot.kt b/.teamcity/Buildship/GitHubVcsRoot.kt deleted file mode 100644 index a8b764a89e..0000000000 --- a/.teamcity/Buildship/GitHubVcsRoot.kt +++ /dev/null @@ -1,33 +0,0 @@ -package Buildship - -import jetbrains.buildServer.configs.kotlin.v2019_2.vcs.GitVcsRoot - -object GitHubVcsRoot : GitVcsRoot({ - name = "Buildship" - url = "https://github.com/eclipse/buildship.git" - agentGitPath = "%env.TEAMCITY_GIT_PATH%" - agentCleanFilesPolicy = AgentCleanFilesPolicy.NON_IGNORED_ONLY - checkoutPolicy = AgentCheckoutPolicy.AUTO - authMethod = anonymous() -}) - -object GitHubForkVcsRoot : GitVcsRoot({ - name = "BuildshipFork" - url = "https://github.com/gradle/buildship.git" - agentGitPath = "%env.TEAMCITY_GIT_PATH%" - agentCleanFilesPolicy = AgentCleanFilesPolicy.NON_IGNORED_ONLY - checkoutPolicy = AgentCheckoutPolicy.AUTO - authMethod = anonymous() - branch = "refs/heads/master" - branchSpec = "+:*" -}) - -object GitHubBuildshipForkSettingsVcsRoot : GitVcsRoot({ - name = "BuildshipSettings" - url = "https://github.com/gradle/buildship.git" - agentGitPath = "%env.TEAMCITY_GIT_PATH%" - agentCleanFilesPolicy = AgentCleanFilesPolicy.NON_IGNORED_ONLY - checkoutPolicy = AgentCheckoutPolicy.AUTO - authMethod = anonymous() - branch = "refs/heads/teamcity-config" -}) diff --git a/.teamcity/Buildship/Jdk.kt b/.teamcity/Buildship/Jdk.kt deleted file mode 100644 index 806f5488fc..0000000000 --- a/.teamcity/Buildship/Jdk.kt +++ /dev/null @@ -1,24 +0,0 @@ -package Buildship - -import java.util.EnumSet - -enum class Jdk(val majorVersion: String, val vendor: String, val availableOn: EnumSet = EnumSet.allOf(OS::class.java)) { - ORACLE_JDK_8("8", "oracle"), - ORACLE_JDK_9("9", "oracle", EnumSet.of(OS.LINUX)), - OPEN_JDK_10("10", "oracle", EnumSet.of(OS.LINUX)), - OPEN_JDK_11("11", "openjdk"), - OPEN_JDK_12("12", "openjdk", EnumSet.of(OS.LINUX)), - OPEN_JDK_13("13", "openjdk", EnumSet.of(OS.LINUX)), - OPEN_JDK_14("14", "openjdk", EnumSet.of(OS.LINUX)), - OPEN_JDK_15("15", "openjdk"), - OPEN_JDK_16("16", "openjdk"), - OPEN_JDK_17("17", "openjdk"), - OPEN_JDK_18("18", "openjdk"); - // TODO add java 19-ea - - fun getJavaHomePath(os: OS) = if (availableOn.contains(os)) "%${os.name.toLowerCase()}.java${majorVersion}.${vendor}.64bit%" else throw RuntimeException("$name not available on ${os.name}") - - companion object { - fun javaInstallationPathsProperty(os: OS) = "\"-Porg.gradle.java.installations.paths=${ Jdk.values().filter { it.availableOn.contains(os) }.joinToString(",") { it.getJavaHomePath(os) } }\"" - } -} \ No newline at end of file diff --git a/.teamcity/Buildship/OS.kt b/.teamcity/Buildship/OS.kt deleted file mode 100644 index b3c13f7e76..0000000000 --- a/.teamcity/Buildship/OS.kt +++ /dev/null @@ -1,6 +0,0 @@ -package Buildship - -enum class OS(val pathSeparator: String) { - LINUX("/"), - WINDOWS("\\") -} \ No newline at end of file diff --git a/.teamcity/Buildship/Project.kt b/.teamcity/Buildship/Project.kt deleted file mode 100644 index a85b5d4998..0000000000 --- a/.teamcity/Buildship/Project.kt +++ /dev/null @@ -1,424 +0,0 @@ -package Buildship - -import jetbrains.buildServer.configs.kotlin.v2019_2.* -import jetbrains.buildServer.configs.kotlin.v2019_2.Project -import jetbrains.buildServer.configs.kotlin.v2019_2.buildSteps.gradle -import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.* -import jetbrains.buildServer.configs.kotlin.v2019_2.vcs.GitVcsRoot - -val individualBuildsForPhase1 = listOf( - IndividualScenarioBuildType(ScenarioType.SANITY_CHECK, OS.LINUX, EclipseVersion.ECLIPSE4_13, eclipseRuntimeJdk = Jdk.ORACLE_JDK_8) // TODO use latest Eclipse version for sanity check coverage -) -val individualBuildsForPhase2 = listOf( - IndividualScenarioBuildType(ScenarioType.BASIC_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_8, eclipseRuntimeJdk = Jdk.ORACLE_JDK_8), - IndividualScenarioBuildType(ScenarioType.BASIC_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_20, eclipseRuntimeJdk = Jdk.OPEN_JDK_11), - IndividualScenarioBuildType(ScenarioType.BASIC_COVERAGE, OS.WINDOWS, EclipseVersion.ECLIPSE4_8, eclipseRuntimeJdk = Jdk.ORACLE_JDK_8), - IndividualScenarioBuildType(ScenarioType.BASIC_COVERAGE, OS.WINDOWS, EclipseVersion.ECLIPSE4_23, eclipseRuntimeJdk = Jdk.OPEN_JDK_11) -) -val individualBuildsForPhase3 = listOf( - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_8, eclipseRuntimeJdk = Jdk.ORACLE_JDK_8), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_9, eclipseRuntimeJdk = Jdk.ORACLE_JDK_8), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_10, eclipseRuntimeJdk = Jdk.ORACLE_JDK_8), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_11, eclipseRuntimeJdk = Jdk.ORACLE_JDK_8), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_12, eclipseRuntimeJdk = Jdk.ORACLE_JDK_8), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_13, eclipseRuntimeJdk = Jdk.ORACLE_JDK_8), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_14, eclipseRuntimeJdk = Jdk.ORACLE_JDK_8), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_15, eclipseRuntimeJdk = Jdk.ORACLE_JDK_8), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_16, eclipseRuntimeJdk = Jdk.ORACLE_JDK_8), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_17, eclipseRuntimeJdk = Jdk.OPEN_JDK_11), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_18, eclipseRuntimeJdk = Jdk.OPEN_JDK_11), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_19, eclipseRuntimeJdk = Jdk.OPEN_JDK_11), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_20, eclipseRuntimeJdk = Jdk.OPEN_JDK_11), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_21, eclipseRuntimeJdk = Jdk.OPEN_JDK_11), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_22, eclipseRuntimeJdk = Jdk.OPEN_JDK_11), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_23, eclipseRuntimeJdk = Jdk.OPEN_JDK_11), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_24, eclipseRuntimeJdk = Jdk.OPEN_JDK_11), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_25, eclipseRuntimeJdk = Jdk.OPEN_JDK_17), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_26, eclipseRuntimeJdk = Jdk.OPEN_JDK_17), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_27, eclipseRuntimeJdk = Jdk.OPEN_JDK_17), - - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.WINDOWS, EclipseVersion.ECLIPSE4_8, eclipseRuntimeJdk = Jdk.ORACLE_JDK_8), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.WINDOWS, EclipseVersion.ECLIPSE4_23, eclipseRuntimeJdk = Jdk.OPEN_JDK_11) -) -val individualBuildsForPhase4 = listOf( - IndividualScenarioBuildType(ScenarioType.CROSS_VERSION, OS.LINUX, EclipseVersion.ECLIPSE4_8, eclipseRuntimeJdk = Jdk.ORACLE_JDK_8), - // TODO Eclipse 4.8 can only run on Java 8 and below without further configuration https://wiki.eclipse.org/Configure_Eclipse_for_Java_9 - //IndividualScenarioBuildType(ScenarioType.CROSS_VERSION, OS.LINUX, EclipseVersion.ECLIPSE4_8, eclipseRuntimeJdk = Jdk.ORACLE_JDK_9), - //IndividualScenarioBuildType(ScenarioType.CROSS_VERSION, OS.LINUX, EclipseVersion.ECLIPSE4_8, eclipseRuntimeJdk = Jdk.OPEN_JDK_10), - IndividualScenarioBuildType(ScenarioType.CROSS_VERSION, OS.LINUX, EclipseVersion.ECLIPSE4_23, eclipseRuntimeJdk = Jdk.OPEN_JDK_11), - IndividualScenarioBuildType(ScenarioType.CROSS_VERSION, OS.LINUX, EclipseVersion.ECLIPSE4_23, eclipseRuntimeJdk = Jdk.OPEN_JDK_12), - IndividualScenarioBuildType(ScenarioType.CROSS_VERSION, OS.LINUX, EclipseVersion.ECLIPSE4_23, eclipseRuntimeJdk = Jdk.OPEN_JDK_13), - IndividualScenarioBuildType(ScenarioType.CROSS_VERSION, OS.LINUX, EclipseVersion.ECLIPSE4_23, eclipseRuntimeJdk = Jdk.OPEN_JDK_14), - IndividualScenarioBuildType(ScenarioType.CROSS_VERSION, OS.LINUX, EclipseVersion.ECLIPSE4_23, eclipseRuntimeJdk = Jdk.OPEN_JDK_15), - IndividualScenarioBuildType(ScenarioType.CROSS_VERSION, OS.LINUX, EclipseVersion.ECLIPSE4_23, eclipseRuntimeJdk = Jdk.OPEN_JDK_16), - IndividualScenarioBuildType(ScenarioType.CROSS_VERSION, OS.LINUX, EclipseVersion.ECLIPSE4_23, eclipseRuntimeJdk = Jdk.OPEN_JDK_17), - // TODO JDK 18 is only supported in Eclipse 4.24 - //IndividualScenarioBuildType(ScenarioType.CROSS_VERSION, OS.LINUX, EclipseVersion.ECLIPSE4_23, eclipseRuntimeJdk = Jdk.OPEN_JDK_18) -) - -val individualBuildsForPhase1Forked = listOf( - IndividualScenarioBuildType(ScenarioType.SANITY_CHECK, OS.LINUX, EclipseVersion.ECLIPSE4_13, eclipseRuntimeJdk = Jdk.ORACLE_JDK_8, GitHubForkVcsRoot) // TODO use latest Eclipse version for sanity check coverage -) -val individualBuildsForPhase2Forked = listOf( - IndividualScenarioBuildType(ScenarioType.BASIC_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_8, eclipseRuntimeJdk = Jdk.ORACLE_JDK_8, GitHubForkVcsRoot), - IndividualScenarioBuildType(ScenarioType.BASIC_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_20, eclipseRuntimeJdk = Jdk.OPEN_JDK_11, GitHubForkVcsRoot), - IndividualScenarioBuildType(ScenarioType.BASIC_COVERAGE, OS.WINDOWS, EclipseVersion.ECLIPSE4_8, eclipseRuntimeJdk = Jdk.ORACLE_JDK_8, GitHubForkVcsRoot), - IndividualScenarioBuildType(ScenarioType.BASIC_COVERAGE, OS.WINDOWS, EclipseVersion.ECLIPSE4_23, eclipseRuntimeJdk = Jdk.OPEN_JDK_11, GitHubForkVcsRoot) -) -val individualBuildsForPhase3Forked = listOf( - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_8, eclipseRuntimeJdk = Jdk.ORACLE_JDK_8, GitHubForkVcsRoot), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_9, eclipseRuntimeJdk = Jdk.ORACLE_JDK_8, GitHubForkVcsRoot), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_10, eclipseRuntimeJdk = Jdk.ORACLE_JDK_8, GitHubForkVcsRoot), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_11, eclipseRuntimeJdk = Jdk.ORACLE_JDK_8, GitHubForkVcsRoot), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_12, eclipseRuntimeJdk = Jdk.ORACLE_JDK_8, GitHubForkVcsRoot), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_13, eclipseRuntimeJdk = Jdk.ORACLE_JDK_8, GitHubForkVcsRoot), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_14, eclipseRuntimeJdk = Jdk.ORACLE_JDK_8, GitHubForkVcsRoot), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_15, eclipseRuntimeJdk = Jdk.ORACLE_JDK_8, GitHubForkVcsRoot), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_16, eclipseRuntimeJdk = Jdk.ORACLE_JDK_8, GitHubForkVcsRoot), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_17, eclipseRuntimeJdk = Jdk.OPEN_JDK_11, GitHubForkVcsRoot), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_18, eclipseRuntimeJdk = Jdk.OPEN_JDK_11, GitHubForkVcsRoot), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_19, eclipseRuntimeJdk = Jdk.OPEN_JDK_11, GitHubForkVcsRoot), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_20, eclipseRuntimeJdk = Jdk.OPEN_JDK_11, GitHubForkVcsRoot), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_21, eclipseRuntimeJdk = Jdk.OPEN_JDK_11, GitHubForkVcsRoot), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_22, eclipseRuntimeJdk = Jdk.OPEN_JDK_11, GitHubForkVcsRoot), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_23, eclipseRuntimeJdk = Jdk.OPEN_JDK_11, GitHubForkVcsRoot), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_24, eclipseRuntimeJdk = Jdk.OPEN_JDK_11, GitHubForkVcsRoot), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_25, eclipseRuntimeJdk = Jdk.OPEN_JDK_17, GitHubForkVcsRoot), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_26, eclipseRuntimeJdk = Jdk.OPEN_JDK_17, GitHubForkVcsRoot), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.LINUX, EclipseVersion.ECLIPSE4_27, eclipseRuntimeJdk = Jdk.OPEN_JDK_17, GitHubForkVcsRoot), - - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.WINDOWS, EclipseVersion.ECLIPSE4_8, eclipseRuntimeJdk = Jdk.ORACLE_JDK_8, GitHubForkVcsRoot), - IndividualScenarioBuildType(ScenarioType.FULL_COVERAGE, OS.WINDOWS, EclipseVersion.ECLIPSE4_23, eclipseRuntimeJdk = Jdk.OPEN_JDK_11, GitHubForkVcsRoot) -) -val individualBuildsForPhase4Forked = listOf( - IndividualScenarioBuildType(ScenarioType.CROSS_VERSION, OS.LINUX, EclipseVersion.ECLIPSE4_8, eclipseRuntimeJdk = Jdk.ORACLE_JDK_8, GitHubForkVcsRoot), - // TODO Eclipse 4.8 can only run on Java 8 and below without further configuration https://wiki.eclipse.org/Configure_Eclipse_for_Java_9 - //IndividualScenarioBuildType(ScenarioType.CROSS_VERSION, OS.LINUX, EclipseVersion.ECLIPSE4_8, eclipseRuntimeJdk = Jdk.ORACLE_JDK_9, GitHubForkVcsRoot), - //IndividualScenarioBuildType(ScenarioType.CROSS_VERSION, OS.LINUX, EclipseVersion.ECLIPSE4_8, eclipseRuntimeJdk = Jdk.OPEN_JDK_10, GitHubForkVcsRoot), - IndividualScenarioBuildType(ScenarioType.CROSS_VERSION, OS.LINUX, EclipseVersion.ECLIPSE4_23, eclipseRuntimeJdk = Jdk.OPEN_JDK_11, GitHubForkVcsRoot), - IndividualScenarioBuildType(ScenarioType.CROSS_VERSION, OS.LINUX, EclipseVersion.ECLIPSE4_23, eclipseRuntimeJdk = Jdk.OPEN_JDK_12, GitHubForkVcsRoot), - IndividualScenarioBuildType(ScenarioType.CROSS_VERSION, OS.LINUX, EclipseVersion.ECLIPSE4_23, eclipseRuntimeJdk = Jdk.OPEN_JDK_13, GitHubForkVcsRoot), - IndividualScenarioBuildType(ScenarioType.CROSS_VERSION, OS.LINUX, EclipseVersion.ECLIPSE4_23, eclipseRuntimeJdk = Jdk.OPEN_JDK_14, GitHubForkVcsRoot), - IndividualScenarioBuildType(ScenarioType.CROSS_VERSION, OS.LINUX, EclipseVersion.ECLIPSE4_23, eclipseRuntimeJdk = Jdk.OPEN_JDK_15, GitHubForkVcsRoot), - IndividualScenarioBuildType(ScenarioType.CROSS_VERSION, OS.LINUX, EclipseVersion.ECLIPSE4_23, eclipseRuntimeJdk = Jdk.OPEN_JDK_16, GitHubForkVcsRoot), - IndividualScenarioBuildType(ScenarioType.CROSS_VERSION, OS.LINUX, EclipseVersion.ECLIPSE4_23, eclipseRuntimeJdk = Jdk.OPEN_JDK_17, GitHubForkVcsRoot), - // TODO JDK 18 is only supported in Eclipse 4.24 - //IndividualScenarioBuildType(ScenarioType.CROSS_VERSION, OS.LINUX, EclipseVersion.ECLIPSE4_23, eclipseRuntimeJdk = Jdk.OPEN_JDK_18, GitHubForkVcsRoot) -) - - -val tb1_1 = CheckpointBuildType("Sanity Check (Phase 1/1)", individualBuildsForPhase1, null) -val tb1_2 = CheckpointBuildType("Basic Test Coverage (Phase 1/2)", individualBuildsForPhase1, null) -val tb2_2 = CheckpointBuildType("Basic Test Coverage (Phase 2/2)", individualBuildsForPhase2, tb1_2) -val tb3_1 = CheckpointBuildType("Full Test Coverage (Phase 1/3)", individualBuildsForPhase1, null, Trigger.GIT) -val tb3_2 = CheckpointBuildType("Full Test Coverage (Phase 2/3)", individualBuildsForPhase2, tb3_1) -val tb3_3 = CheckpointBuildType("Full Test Coverage (Phase 3/3)", individualBuildsForPhase3, tb3_2) -val tb4_1 = CheckpointBuildType("Cross-Version Test Coverage (Phase 1/4)", individualBuildsForPhase1, null, Trigger.DAILY) -val tb4_2 = CheckpointBuildType("Cross-Version Test Coverage (Phase 2/4)", individualBuildsForPhase2, tb4_1) -val tb4_3 = CheckpointBuildType("Cross-Version Test Coverage (Phase 3/4)", individualBuildsForPhase3, tb4_2) -val tb4_4 = CheckpointBuildType("Cross-Version Test Coverage (Phase 4/4)", individualBuildsForPhase4, tb4_3) - -val tb1_1_f = CheckpointBuildType("Sanity Check (Fork, Phase 1/1)", individualBuildsForPhase1Forked, null, Trigger.NONE, GitHubForkVcsRoot) -val tb1_2_f = CheckpointBuildType("Basic Test Coverage (Fork, Phase 1/2)", individualBuildsForPhase1Forked, null, Trigger.NONE, GitHubForkVcsRoot) -val tb2_2_f = CheckpointBuildType("Basic Test Coverage (Fork, Phase 2/2)", individualBuildsForPhase2Forked, tb1_2_f, Trigger.NONE, GitHubForkVcsRoot) -val tb3_1_f = CheckpointBuildType("Full Test Coverage (Fork, Phase 1/3)", individualBuildsForPhase1Forked, null, Trigger.GIT, GitHubForkVcsRoot) -val tb3_2_f = CheckpointBuildType("Full Test Coverage (Fork, Phase 2/3)", individualBuildsForPhase2Forked, tb3_1_f, Trigger.NONE, GitHubForkVcsRoot) -val tb3_3_f = CheckpointBuildType("Full Test Coverage (Fork, Phase 3/3)", individualBuildsForPhase3Forked, tb3_2_f, Trigger.NONE, GitHubForkVcsRoot) -val tb4_1_f = CheckpointBuildType("Cross-Version Test Coverage (Fork, Phase 1/4)", individualBuildsForPhase1Forked, null, Trigger.NONE, GitHubForkVcsRoot) -val tb4_2_f = CheckpointBuildType("Cross-Version Test Coverage (Fork, Phase 2/4)", individualBuildsForPhase2Forked, tb4_1_f, Trigger.NONE, GitHubForkVcsRoot) -val tb4_3_f = CheckpointBuildType("Cross-Version Test Coverage (Fork, Phase 3/4)", individualBuildsForPhase3Forked, tb4_2_f, Trigger.NONE, GitHubForkVcsRoot) -val tb4_4_f = CheckpointBuildType("Cross-Version Test Coverage (Fork, Phase 4/4)", individualBuildsForPhase4Forked, tb4_3_f, Trigger.NONE, GitHubForkVcsRoot) - -val unsafeSnapshotPromotion = PromotionBuildType("snapshot (from sanity check)","snapshot", tb1_1) -val snapshotPromotion = PromotionBuildType("snapshot", "snapshot", tb4_4, Trigger.DAILY_MASTER) -val milestonePromotion = PromotionBuildType("milestone","milestone", tb4_4) -val releasePromotion = PromotionBuildType("release","release", tb4_4) -val individualSnapshotPromotions = EclipseVersion.values().map { SinglePromotionBuildType("Snapshot Eclipse ${it.codeName}", "snapshot", it, tb1_1) } // TODO should depend on tb4_4 -val individualReleasePromotions = EclipseVersion.values().map { SinglePromotionBuildType("Release Eclipse ${it.codeName}", "release", it, tb1_1) } // TODO should depend on tb4_4 - - -class IndividualScenarioBuildType(type: ScenarioType, os: OS, eclipseVersion: EclipseVersion, eclipseRuntimeJdk: Jdk, vcsRoot: GitVcsRoot = GitHubVcsRoot) : BuildType({ - createId("Individual", "${vcsRoot.name}_${type.name.toLowerCase()}_Test_Coverage_${os.name.toLowerCase()}_Eclipse${eclipseVersion.versionNumber}_OnJava${eclipseRuntimeJdk.majorVersion}") - addCredentialsLeakFailureCondition() - - artifactRules = """ - org.eclipse.buildship.site/build/repository/** => .teamcity/update-site - org.eclipse.buildship.core.test/build/eclipseTest/workspace/.metadata/.log => .teamcity/test/org.eclipse.buildship.core.test - org.eclipse.buildship.ui.test/build/eclipseTest/workspace/.metadata/.log => .teamcity/test/org.eclipse.buildship.ui.test - """.trimIndent() - - params { - param("eclipse.release.type", "snapshot") - param("build.invoker", "ci") - param("eclipse.version", eclipseVersion.updateSiteVersion) - param("eclipse.test.java.version", eclipseRuntimeJdk.majorVersion) - param("env.JAVA_HOME", Jdk.OPEN_JDK_11.getJavaHomePath(os)) - param("gradle.tasks", type.gradleTasks) - param("repository.mirrors", allMirrors()) - param("env.GRADLE_ENTERPRISE_ACCESS_KEY", "%ge.gradle.org.access.key%") - } - - if (vcsRoot == GitHubForkVcsRoot) { - triggers { - vcs { - quietPeriodMode = VcsTrigger.QuietPeriodMode.DO_NOT_USE - perCheckinTriggering = true - groupCheckinsByCommitter = true - enableQueueOptimization = false - } - } - } - - triggers { - retryBuild { - delaySeconds = 0 - attempts = 2 - } - } - - steps { - gradle { - name = "RUNNER_21" - id = "RUNNER_21" - tasks = "%gradle.tasks%" - buildFile = "" - gradleParams = "-Platest=${if(eclipseVersion.isLatest) "true" else "false"} -Prepository.mirrors=\"%repository.mirrors%\" -Peclipse.version=%eclipse.version% -Pbuild.invoker=%build.invoker% -Prelease.type=%eclipse.release.type% -Peclipse.test.java.version=%eclipse.test.java.version% --info --stacktrace -Declipse.p2.mirror=false -Dscan \"-Dgradle.cache.remote.url=%gradle.cache.remote.url%\" \"-Dgradle.cache.remote.username=%gradle.cache.remote.username%\" \"-Dgradle.cache.remote.password=%gradle.cache.remote.password%\" ${Jdk.javaInstallationPathsProperty(os)}" - jvmArgs = "-XX:MaxPermSize=256m" - param("org.jfrog.artifactory.selectedDeployableServer.defaultModuleVersionConfiguration", "GLOBAL") - jdkHome - } - } - - vcs { - root(vcsRoot) - checkoutMode = CheckoutMode.ON_AGENT - } - - cleanup { - all(days = 5) - history(days = 5) - artifacts(days = 5) - preventDependencyCleanup = false - } - - requirements { - contains("teamcity.agent.jvm.os.name", os.name.toLowerCase().capitalize()) - doesNotMatch("teamcity.agent.name", "ec2-.*") - } -}) - -class PromotionBuildType(promotionName: String, typeName: String, dependency: BuildType, trigger: Trigger = Trigger.NONE) : BuildType({ - createId("Promotion", promotionName.capitalize()) - artifactRules = "org.eclipse.buildship.site/build/repository/** => .teamcity/update-site" - trigger.applyOn(this) - addCredentialsLeakFailureCondition() - - params { - when(typeName) { - "milestone" -> text("Confirm", "NO", label = "Do you want to proceed with the milestone?", description = "Confirm to publish a new milestone.", display = ParameterDisplay.PROMPT,regex = "YES", validationMessage = "Confirm by writing YES in order to proceed.") - "release" -> password("github.token", "", label = "GitHub token", description = "Please specify your GitHub auth token to proceed with the release", display = ParameterDisplay.PROMPT) - } - param("eclipse.release.type", typeName) - param("build.invoker", "ci") - param("env.JAVA_HOME", Jdk.OPEN_JDK_11.getJavaHomePath(OS.LINUX)) - param("repository.mirrors", allMirrors()) - param("env.GRADLE_ENTERPRISE_ACCESS_KEY", "%ge.gradle.org.access.key%") - } - - // The artifact upload requires uses ssh which requires manual confirmation. to work around that, we use the same - // machine for the upload. - // TODO We should separate the update site generation and the artifact upload into two separate steps. - requirements { - contains("teamcity.agent.jvm.os.name", "Linux") - contains("teamcity.agent.name", "dev") - } - - vcs { - root(GitHubVcsRoot) - - checkoutMode = CheckoutMode.ON_AGENT - cleanCheckout = true - showDependenciesChanges = true - } - - failureConditions { - errorMessage = true - } - - dependencies { - snapshot(dependency, DefaultFailureCondition) - } - - steps { - for (eclipseVersion in EclipseVersion.values().reversed()) { - gradle { - name = "Build and upload update site for Eclipse ${eclipseVersion.codeName} (${eclipseVersion.versionNumber})" - tasks = "clean build uploadUpdateSite" - buildFile = "" - gradleParams = "-Platest=${if(eclipseVersion.isLatest) "true" else "false"} -Prepository.mirrors=\"%repository.mirrors%\" --exclude-task eclipseTest -Peclipse.version=${eclipseVersion.updateSiteVersion} -Pbuild.invoker=%build.invoker% -Prelease.type=%eclipse.release.type% -PECLIPSE_ORG_FTP_HOST=projects-storage.eclipse.org -PECLIPSE_ORG_FTP_USER=%eclipse.downloadServer.username% -PECLIPSE_ORG_FTP_PASSWORD=%eclipse.downloadServer.password% -PECLIPSE_ORG_FTP_UPDATE_SITES_PATH=downloads/buildship/updates -PECLIPSE_ORG_TEMP_PATH=tmp -PECLIPSE_ORG_MIRROR_PATH=/buildship/updates --stacktrace -Declipse.p2.mirror=false \"-Dgradle.cache.remote.url=%gradle.cache.remote.url%\" \"-Dgradle.cache.remote.username=%gradle.cache.remote.username%\" \"-Dgradle.cache.remote.password=%gradle.cache.remote.password%\" ${Jdk.javaInstallationPathsProperty(OS.LINUX)}" - param("org.jfrog.artifactory.selectedDeployableServer.defaultModuleVersionConfiguration", "GLOBAL") - } - } - - if (typeName == "release") { - gradle { - name = "Tag revision and increment version number" - tasks = "tag incrementVersion" - buildFile = "" - gradleParams = "-Prepository.mirrors=\"%repository.mirrors%\" --exclude-task eclipseTest -Peclipse.version=45 -Pbuild.invoker=%build.invoker% -Prelease.type=%eclipse.release.type% -PECLIPSE_ORG_FTP_HOST=projects-storage.eclipse.org -PECLIPSE_ORG_FTP_USER=%eclipse.downloadServer.username% -PECLIPSE_ORG_FTP_PASSWORD=%eclipse.downloadServer.password% -PECLIPSE_ORG_FTP_UPDATE_SITES_PATH=downloads/buildship/updates -PECLIPSE_ORG_TEMP_PATH=tmp -PECLIPSE_ORG_MIRROR_PATH=/buildship/updates -PgithubAccessKey=%github.token% --stacktrace \"-Dgradle.cache.remote.url=%gradle.cache.remote.url%\" \"-Dgradle.cache.remote.username=%gradle.cache.remote.username%\" \"-Dgradle.cache.remote.password=%gradle.cache.remote.password%\" ${Jdk.javaInstallationPathsProperty(OS.LINUX)}" - } - } - } -}) - -class SinglePromotionBuildType(promotionName: String, typeName: String, eclipseVersion: EclipseVersion, dependency: BuildType, trigger: Trigger = Trigger.NONE) : BuildType({ - createId("Promotion", promotionName.capitalize()) - artifactRules = "org.eclipse.buildship.site/build/repository/** => .teamcity/update-site" - trigger.applyOn(this) - addCredentialsLeakFailureCondition() - - params { - when(typeName) { - "milestone" -> text("Confirm", "NO", label = "Do you want to proceed with the milestone?", description = "Confirm to publish a new milestone.", display = ParameterDisplay.PROMPT,regex = "YES", validationMessage = "Confirm by writing YES in order to proceed.") - "release" -> password("github.token", "", label = "GitHub token", description = "Please specify your GitHub auth token to proceed with the release", display = ParameterDisplay.PROMPT) - } - param("eclipse.release.type", typeName) - param("build.invoker", "ci") - param("env.JAVA_HOME", Jdk.OPEN_JDK_11.getJavaHomePath(OS.LINUX)) - param("repository.mirrors", allMirrors()) - param("env.GRADLE_ENTERPRISE_ACCESS_KEY", "%ge.gradle.org.access.key%") - } - - // The artifact upload requires uses ssh which requires manual confirmation. to work around that, we use the same - // machine for the upload. - // TODO We should separate the update site generation and the artifact upload into two separate steps. - requirements { - contains("teamcity.agent.jvm.os.name", "Linux") - contains("teamcity.agent.name", "dev") - } - - vcs { - root(GitHubVcsRoot) - - checkoutMode = CheckoutMode.ON_AGENT - cleanCheckout = true - showDependenciesChanges = true - } - - failureConditions { - errorMessage = true - } - - dependencies { - snapshot(dependency, DefaultFailureCondition) - } - - steps { - gradle { - name = "Build and upload update site for Eclipse ${eclipseVersion.codeName} (${eclipseVersion.versionNumber})" - tasks = "clean build uploadUpdateSite" - buildFile = "" - gradleParams = "-Platest=${if(eclipseVersion.isLatest) "true" else "false"} -Prepository.mirrors=\"%repository.mirrors%\" --exclude-task eclipseTest -Peclipse.version=${eclipseVersion.updateSiteVersion} -Pbuild.invoker=%build.invoker% -Prelease.type=%eclipse.release.type% -PECLIPSE_ORG_FTP_HOST=projects-storage.eclipse.org -PECLIPSE_ORG_FTP_USER=%eclipse.downloadServer.username% -PECLIPSE_ORG_FTP_PASSWORD=%eclipse.downloadServer.password% -PECLIPSE_ORG_FTP_UPDATE_SITES_PATH=downloads/buildship/updates -PECLIPSE_ORG_TEMP_PATH=tmp -PECLIPSE_ORG_MIRROR_PATH=/buildship/updates --stacktrace -Declipse.p2.mirror=false \"-Dgradle.cache.remote.url=%gradle.cache.remote.url%\" \"-Dgradle.cache.remote.username=%gradle.cache.remote.username%\" \"-Dgradle.cache.remote.password=%gradle.cache.remote.password%\" ${Jdk.javaInstallationPathsProperty(OS.LINUX)}" - param("org.jfrog.artifactory.selectedDeployableServer.defaultModuleVersionConfiguration", "GLOBAL") - } - - if (typeName == "release" && eclipseVersion.isLatest) { - gradle { - name = "Tag revision and increment version number" - tasks = "tag incrementVersion" - buildFile = "" - gradleParams = "-Prepository.mirrors=\"%repository.mirrors%\" --exclude-task eclipseTest -Peclipse.version=45 -Pbuild.invoker=%build.invoker% -Prelease.type=%eclipse.release.type% -PECLIPSE_ORG_FTP_HOST=projects-storage.eclipse.org -PECLIPSE_ORG_FTP_USER=%eclipse.downloadServer.username% -PECLIPSE_ORG_FTP_PASSWORD=%eclipse.downloadServer.password% -PECLIPSE_ORG_FTP_UPDATE_SITES_PATH=downloads/buildship/updates -PECLIPSE_ORG_TEMP_PATH=tmp -PECLIPSE_ORG_MIRROR_PATH=/buildship/updates -PgithubAccessKey=%github.token% --stacktrace \"-Dgradle.cache.remote.url=%gradle.cache.remote.url%\" \"-Dgradle.cache.remote.username=%gradle.cache.remote.username%\" \"-Dgradle.cache.remote.password=%gradle.cache.remote.password%\" ${Jdk.javaInstallationPathsProperty(OS.LINUX)}" - } - } - } -}) - - -class CheckpointBuildType(triggerName: String, scenarios: List, previousCheckpoint: CheckpointBuildType?, trigger: Trigger = Trigger.NONE, vcsRoot: GitVcsRoot = GitHubVcsRoot) : BuildType({ - createId("Checkpoint", triggerName) - trigger.applyOn(this) - - vcs { - root(vcsRoot) - - checkoutMode = CheckoutMode.ON_AGENT - cleanCheckout = true - showDependenciesChanges = true - } - - if (previousCheckpoint != null) { - triggers { - finishBuildTrigger { - buildType = previousCheckpoint.id!!.value - successfulOnly = true - branchFilter = "+:*" - } - } - - dependencies { - snapshot(previousCheckpoint, FailWhenDependenciesFail) - } - } - - dependencies { - scenarios.forEach { - snapshot(it, DefaultFailureCondition) - } - } -}) - - -object Project : Project({ - description = "Eclipse plugins for Gradle http://eclipse.org/buildship" - vcsRoot(GitHubForkVcsRoot) - vcsRoot(GitHubVcsRoot) - vcsRoot(GitHubBuildshipForkSettingsVcsRoot) - subprojectsWithOrder(listOf(IndividualBuilds, Checkpoints, Promotions)) - - params { - param("env.JAVA_TOOL_OPTIONS", "-Dfile.encoding=UTF8") - password("eclipse.downloadServer.password", "credentialsJSON:e600b1ef-46bb-4ced-b45b-795da6964956", label = "Password", display = ParameterDisplay.HIDDEN) - password("eclipse.downloadServer.username", "credentialsJSON:23f3947f-45b2-46b8-83f6-9341c9b914f6", label = "Username", display = ParameterDisplay.HIDDEN) - // Do not allow UI changes in the TeamCity configuration - param("teamcity.ui.settings.readOnly", "true") - param("env.GRADLE_ENTERPRISE_ACCESS_KEY", "%ge.gradle.org.access.key%") - } - - cleanup { - all(days = 5) - history(days = 5) - artifacts(days = 5) - preventDependencyCleanup = false - } -}) - -object IndividualBuilds : Project({ - createId("Individual Coverage Scenarios") - buildTypesWithOrder(individualBuildsForPhase1 + individualBuildsForPhase2 + individualBuildsForPhase3 + individualBuildsForPhase4 + - individualBuildsForPhase1Forked + individualBuildsForPhase2Forked + individualBuildsForPhase3Forked + individualBuildsForPhase4Forked) -}) - -object Checkpoints : Project({ - createId("Checkpoints") - buildTypesWithOrder(listOf( - tb1_1, - tb1_2, tb2_2, - tb3_1, tb3_2, tb3_3, - tb4_1, tb4_2, tb4_3, tb4_4, - tb1_1_f, - tb1_2_f, tb2_2_f, - tb3_1_f, tb3_2_f, tb3_3_f, - tb4_1_f, tb4_2_f, tb4_3_f, tb4_4_f)) -}) - -object Promotions : Project({ - createId("Promotions") - buildTypesWithOrder(listOf(unsafeSnapshotPromotion, snapshotPromotion, milestonePromotion, releasePromotion) + individualSnapshotPromotions + individualReleasePromotions) -}) - - -fun allMirrors() = EclipseVersion.values() - .map { "https://download.eclipse.org/releases/${it.codeName.toLowerCase()}->https://repo.grdev.net/artifactory/eclipse-ide/releases/${it.codeName.toLowerCase()}" } - .joinToString(",") + - ",https://download.eclipse.org/tools/orbit/downloads/drops/R20210602031627/repository->https://repo.grdev.net/artifactory/eclipse-orbit" + - ",https://download.eclipse.org/technology/swtbot/releases/2.2.1->https://repo.grdev.net/artifactory/eclipse-swtbot" diff --git a/.teamcity/Buildship/ScenarioType.kt b/.teamcity/Buildship/ScenarioType.kt deleted file mode 100644 index 8697e24050..0000000000 --- a/.teamcity/Buildship/ScenarioType.kt +++ /dev/null @@ -1,8 +0,0 @@ -package Buildship - -enum class ScenarioType(val gradleTasks: String) { - SANITY_CHECK("assemble checkstyleMain"), - BASIC_COVERAGE("clean eclipseTest"), - FULL_COVERAGE("clean build"), - CROSS_VERSION("clean crossVersionEclipseTest") -} diff --git a/.teamcity/Buildship/Trigger.kt b/.teamcity/Buildship/Trigger.kt deleted file mode 100644 index 735c6edac2..0000000000 --- a/.teamcity/Buildship/Trigger.kt +++ /dev/null @@ -1,58 +0,0 @@ -package Buildship - -import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType -import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.VcsTrigger -import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.schedule -import jetbrains.buildServer.configs.kotlin.v2019_2.triggers.vcs - -enum class Trigger(private val func: (BuildType) -> Unit) { - NONE({ }), - GIT({ buildType -> - buildType.triggers { - vcs { - quietPeriodMode = VcsTrigger.QuietPeriodMode.DO_NOT_USE - perCheckinTriggering = true - groupCheckinsByCommitter = true - enableQueueOptimization = false - } - } - }), - DAILY({ buildType -> - buildType.triggers { - schedule { - schedulingPolicy = daily { - hour = 4 - timezone = "Europe/Budapest" - } - branchFilter = """ - +:master - """.trimIndent() - triggerBuild = always() - param("revisionRule", "lastFinished") - param("dayOfWeek", "Sunday") - } - } - }), - - DAILY_MASTER({ buildType -> - buildType.triggers { - schedule { - schedulingPolicy = daily { - hour = 4 - timezone = "Europe/Budapest" - } - branchFilter = """ - +:master - -:teamcity-versioned-settings - """.trimIndent() - triggerBuild = always() - param("revisionRule", "lastFinished") - param("dayOfWeek", "Sunday") - } - } - }); - - fun applyOn(buildType: BuildType) { - func.invoke(buildType) - } -} \ No newline at end of file diff --git a/.teamcity/Buildship/extensions.kt b/.teamcity/Buildship/extensions.kt deleted file mode 100644 index ce0da02178..0000000000 --- a/.teamcity/Buildship/extensions.kt +++ /dev/null @@ -1,59 +0,0 @@ -package Buildship - -import jetbrains.buildServer.configs.kotlin.v2019_2.BuildType -import jetbrains.buildServer.configs.kotlin.v2019_2.FailureAction -import jetbrains.buildServer.configs.kotlin.v2019_2.Project -import jetbrains.buildServer.configs.kotlin.v2019_2.SnapshotDependency -import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.BuildFailureOnText -import jetbrains.buildServer.configs.kotlin.v2019_2.failureConditions.failOnText -import jetbrains.buildServer.configs.kotlin.v2019_2.ui.add - -fun BuildType.addCredentialsLeakFailureCondition() { - failureConditions { - add { - failOnText { - conditionType = BuildFailureOnText.ConditionType.CONTAINS - pattern = "%unmaskedFakeCredentials%" - failureMessage = "This build might be leaking credentials" - reverse = false - stopBuildOnFailure = true - } - } - } -} - -fun BuildType.createId(type: String, name: String) { - this.name = name - id("${type}_${name.replace(" ", "_").replace("-", "_").replace("(", "").replace(")", "").replace("/", "").replace(",", "").replace(".", "_")}") -} - -fun Project.buildTypesWithOrder(buildTypes: List) { - buildTypes.forEach { bt -> - buildType(bt) - } - buildTypesOrder = buildTypes -} - -fun Project.subprojectsWithOrder(subprojects: List) { - subprojects.forEach { sb -> - subProject(sb) - } - subProjectsOrder = subprojects -} - -fun Project.createId(name: String) { - this.name = name - id("Buildship_${name.replace(" ", "_")}") -} - -val DefaultFailureCondition : SnapshotDependency.() -> Unit - get() = { - onDependencyCancel = FailureAction.ADD_PROBLEM - onDependencyFailure = FailureAction.FAIL_TO_START - } - -val FailWhenDependenciesFail : SnapshotDependency.() -> Unit - get() = { - onDependencyCancel = FailureAction.ADD_PROBLEM - onDependencyFailure = FailureAction.ADD_PROBLEM - } \ No newline at end of file diff --git a/.teamcity/pom.xml b/.teamcity/pom.xml deleted file mode 100644 index ac4811176e..0000000000 --- a/.teamcity/pom.xml +++ /dev/null @@ -1,137 +0,0 @@ - - - 4.0.0 - Tooling_Buildship Config DSL Script - - - 1.6.21 - - - Tooling_Buildship - Tooling_Buildship_dsl - 1.0-SNAPSHOT - - - org.jetbrains.teamcity - configs-dsl-kotlin-parent - 1.0-SNAPSHOT - - - - - jetbrains-all - https://download.jetbrains.com/teamcity-repository - - true - - - - teamcity-server - https://builds.gradle.org/app/dsl-plugins-repository - - true - - - - - - - JetBrains - https://download.jetbrains.com/teamcity-repository - - - - - - - - kotlin-maven-plugin - org.jetbrains.kotlin - ${kotlin.version} - - - 1.8 - - - - compile - compile - - compile - - - - test-compile - test-compile - - test-compile - - - - - - org.jetbrains.teamcity - teamcity-configs-maven-plugin - ${teamcity.dsl.version} - - kotlin - target/generated-configs - - - - org.apache.maven.plugins - maven-compiler-plugin - - - compile - compile - - compile - - - - testCompile - test-compile - - testCompile - - - - - - - - - - org.jetbrains.teamcity - configs-dsl-kotlin - ${teamcity.dsl.version} - compile - - - org.jetbrains.teamcity - configs-dsl-kotlin-plugins - 1.0-SNAPSHOT - pom - compile - - - org.jetbrains.kotlin - kotlin-stdlib-jdk8 - ${kotlin.version} - compile - - - org.jetbrains.kotlin - kotlin-script-runtime - ${kotlin.version} - compile - - - org.jetbrains.kotlin - kotlin-test - ${kotlin.version} - test - - - \ No newline at end of file diff --git a/.teamcity/settings.kts b/.teamcity/settings.kts deleted file mode 100644 index c229a2a0ee..0000000000 --- a/.teamcity/settings.kts +++ /dev/null @@ -1,33 +0,0 @@ -import jetbrains.buildServer.configs.kotlin.v2019_2.* - -/* -The settings script is an entry point for defining a single -TeamCity project. TeamCity looks for the 'settings.kts' file in a -project directory and runs it if it's found, so the script name -shouldn't be changed and its package should be the same as the -project's id. - -The script should contain a single call to the project() function -with a Project instance or an init function as an argument. - -VcsRoots, BuildTypes, and Templates of this project must be -registered inside project using the vcsRoot(), buildType(), and -template() methods respectively. - -Subprojects can be defined either in their own settings.kts or by -calling the subProjects() method in this project. - -To debug settings scripts in command-line, run the - - mvnDebug org.jetbrains.teamcity:teamcity-configs-maven-plugin:generate - -command and attach your debugger to the port 8000. - -To debug in IntelliJ Idea, open the 'Maven Projects' tool window (View -> -Tool Windows -> Maven Projects), find the generate task -node (Plugins -> teamcity-configs -> teamcity-configs:generate), -the 'Debug' option is available in the context menu for the task. -*/ - -version = "2023.11" -project(Buildship.Project) \ No newline at end of file