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


##########
.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:
   Even if it's not the token itself, but a link to its credential (defined and 
stored in TC parameters)? Unfortunately, I don't seem to see any alternatives 
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