File tree Expand file tree Collapse file tree 4 files changed +59
-0
lines changed
org/apache/ignite/teamcity Expand file tree Collapse file tree 4 files changed +59
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,15 @@ class ApacheIgnite3CustomBuildType(override val buildType: BuildType) : CustomBu
2222 root(AbsoluteId (" GitHubApacheIgnite3" ), " +:. => %VCSROOT__IGNITE3%" )
2323 }
2424 }
25+
26+ /* *
27+ * Set JAVA_HOME to JDK 17
28+ */
29+ fun ignite3Java17 () = apply {
30+ buildType.params {
31+ hiddenText(" env.JAVA_HOME" , " %env.JDK_ORA_17%" )
32+ }
33+ }
2534
2635 /* *
2736 * Send build status to Apache Ignite 3 GitHub repository
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ object RunSanityCheck : BuildType({
1414 dependencies {
1515 snapshot(AssembleTestClasses ) {}
1616 snapshot(CodeStyle ) {}
17+ snapshot(CodeStyleJava17 ) {}
1718 snapshot(Javadoc ) {}
1819 snapshot(MentionTicket ) {}
1920 snapshot(PMD ) {}
Original file line number Diff line number Diff line change @@ -24,4 +24,11 @@ object Project : Project({
2424 .build().buildType
2525 )
2626 }
27+
28+ buildType(
29+ ApacheIgnite3CustomBuildType .Builder (CodeStyleJava17 )
30+ .ignite3VCS().ignite3Java17().ignite3BuildDependency()
31+ .defaultBuildTypeSettings().requireLinux()
32+ .build().buildType
33+ )
2734})
Original file line number Diff line number Diff line change 1+ package test.sanity_check.build_types
2+
3+ import jetbrains.buildServer.configs.kotlin.BuildType
4+ import jetbrains.buildServer.configs.kotlin.failureConditions.BuildFailureOnText
5+ import jetbrains.buildServer.configs.kotlin.failureConditions.failOnText
6+ import org.apache.ignite.teamcity.CustomBuildSteps.Companion.customGradle
7+ import org.apache.ignite.teamcity.Teamcity.Companion.getId
8+ import org.apache.ignite.teamcity.Teamcity.Companion.hiddenText
9+
10+
11+ object CodeStyleJava17 : BuildType({
12+ id(getId(this::class))
13+ name = " Code Style (Java 17)"
14+ description = " Runs code style checks that are missed by Java 11 code style build"
15+
16+ artifactRules = """
17+ %VCSROOT__IGNITE3%/build/reports/checkstyle/*.html
18+ """ .trimIndent()
19+
20+ params {
21+ hiddenText("env.JAVA_HOME ", "%env.JDK_ORA_17 %")
22+ }
23+
24+ steps {
25+ customGradle {
26+ name = " Check code style by Checkstyle Gradle Plugin"
27+ tasks = " java-records-tests:checkstyle"
28+ gradleParams = " --continue"
29+ workingDir = " %VCSROOT__IGNITE3%"
30+ }
31+ }
32+
33+ failureConditions {
34+ executionTimeoutMin = 10
35+ failOnText {
36+ conditionType = BuildFailureOnText .ConditionType .REGEXP
37+ pattern = " There.*[0-9]+ error(s)? reported by Checkstyle"
38+ failureMessage = " CheckStyle errors"
39+ reverse = false
40+ }
41+ }
42+ })
You can’t perform that action at this time.
0 commit comments