ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dpav...@apache.org
Subject [ignite-teamcity-bot] branch srv-selector updated: Selection of service code - fix for hardcoded branch naming.
Date Tue, 07 May 2019 19:55:23 GMT
This is an automated email from the ASF dual-hosted git repository.

dpavlov pushed a commit to branch srv-selector
in repository https://gitbox.apache.org/repos/asf/ignite-teamcity-bot.git


The following commit(s) were added to refs/heads/srv-selector by this push:
     new 342bfd7  Selection of service code - fix for hardcoded branch naming.
342bfd7 is described below

commit 342bfd7b0a5456f2089a1331fd0fbc00ee11f632
Author: Dmitriy Pavlov <dpavlov@apache.org>
AuthorDate: Tue May 7 22:55:18 2019 +0300

    Selection of service code - fix for hardcoded branch naming.
---
 .../main/java/org/apache/ignite/ci/web/model/hist/BuildsHistory.java  | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/web/model/hist/BuildsHistory.java
b/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/web/model/hist/BuildsHistory.java
index b2ede5b..f1b154e 100644
--- a/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/web/model/hist/BuildsHistory.java
+++ b/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/web/model/hist/BuildsHistory.java
@@ -37,6 +37,7 @@ import java.util.concurrent.ExecutionException;
 import java.util.concurrent.Future;
 import java.util.stream.Collectors;
 
+import org.apache.ignite.ci.ITeamcity;
 import org.apache.ignite.ci.tcbot.conf.ITcBotConfig;
 import org.apache.ignite.ci.tcbot.trends.MasterTrendsService;
 import org.apache.ignite.ci.teamcity.ignited.BuildRefCompacted;
@@ -238,7 +239,7 @@ public class BuildsHistory {
         private String buildTypeId = "IgniteTests24Java8_RunAll";
 
         /** */
-        private String branchName = "refs/heads/master";
+        private String branchName = ITeamcity.DEFAULT;
 
         /** */
         private Date sinceDate = null;
@@ -251,6 +252,7 @@ public class BuildsHistory {
 
         public Builder(ITcBotConfig cfg) {
             srvCode = cfg.primaryServerCode();
+            // todo may find findDefaultBuildType() from cfg.getTeamcityConfig(srvCode).defaultTrackedBranch()
         }
 
         /**


Mime
View raw message