Pochatkin commented on code in PR #6583:
URL: https://github.com/apache/ignite-3/pull/6583#discussion_r2413779416


##########
.teamcity/build/distributions/OpenapiSpec.kt:
##########
@@ -0,0 +1,35 @@
+package build.distributions
+
+import jetbrains.buildServer.configs.kotlin.BuildType
+import org.apache.ignite.teamcity.CustomBuildSteps.Companion.customGradle
+import jetbrains.buildServer.configs.kotlin.buildSteps.script
+
+object OpenapiSpec : BuildType({
+    name = "[10] OpenAPI specification"
+    description = "Apache Ignite 3 OpenAPI specification"
+
+    artifactRules = 
"%VCSROOT__IGNITE3%/modules/rest-api/build/openapi/openapi.yaml => artifacts"
+
+    steps {
+        script {

Review Comment:
   Do we reallly need it here?



##########
.teamcity/test/sanity_check/build_types/MavenBuildCheck.kt:
##########
@@ -0,0 +1,33 @@
+package test.sanity_check.build_types
+
+import jetbrains.buildServer.configs.kotlin.BuildType
+import jetbrains.buildServer.configs.kotlin.ParameterDisplay
+import jetbrains.buildServer.configs.kotlin.buildSteps.maven
+import org.apache.ignite.teamcity.CustomBuildSteps.Companion.customGradle
+import org.apache.ignite.teamcity.Teamcity.Companion.getId
+
+
+object MavenBuildCheck : BuildType({

Review Comment:
   Looks like we don't it anymore



##########
.teamcity/org/apache/ignite/teamcity/ApacheIgnite3CustomBuildType.kt:
##########
@@ -0,0 +1,54 @@
+package org.apache.ignite.teamcity
+
+import build.build_types.ApacheIgnite3
+import jetbrains.buildServer.configs.kotlin.AbsoluteId
+import jetbrains.buildServer.configs.kotlin.BuildType
+import jetbrains.buildServer.configs.kotlin.FailureAction
+import jetbrains.buildServer.configs.kotlin.buildFeatures.commitStatusPublisher
+import org.apache.ignite.teamcity.Teamcity.Companion.hiddenText
+
+
+class ApacheIgnite3CustomBuildType(override val buildType: BuildType) : 
CustomBuildType(buildType) {
+    class Builder(override var buildType: BuildType) : 
CustomBuildType.Builder(buildType) {
+        /**
+         * Apache Ignite 3 VCS settings
+         */
+        fun ignite3VCS() = apply {
+            buildType.params {
+                hiddenText("VCSROOT__IGNITE3", "ignite-3")
+                hiddenText("env.JAVA_HOME", "%env.JDK_ORA_11%")
+            }
+            buildType.vcs {
+                root(AbsoluteId("GitHubApacheIgnite3"), "+:. => 
%VCSROOT__IGNITE3%")
+            }
+        }
+
+        /**
+         * Send build status to Apache Ignite 3 GitHub repository
+         */
+        fun ignite3CommitStatusPublisher() = apply {
+            buildType.features {
+                commitStatusPublisher {
+                    vcsRootExtId = "GitHubApacheIgnite3"
+                    publisher = github {
+                        githubUrl = "https://api.github.com";
+                        authType = personalToken {
+                            token = 
"credentialsJSON:81fbfe18-b4b5-4b60-bc69-97240f37b0c3"

Review Comment:
   This is very bad that we have this token here. 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to