ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dpav...@apache.org
Subject [ignite-teamcity-bot] 02/02: IGNITE-10095: Support Build Parameters specifying: bugfixing
Date Wed, 08 May 2019 18:39:02 GMT
This is an automated email from the ASF dual-hosted git repository.

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

commit a9a276eb30bf4ee4d38b41e36778f5d6ab3afa33
Author: Dmitriy Pavlov <dpavlov@apache.org>
AuthorDate: Wed May 8 21:38:54 2019 +0300

    IGNITE-10095: Support Build Parameters specifying: bugfixing
---
 .../java/org/apache/ignite/ci/teamcity/ignited/runhist/RunHistSync.java | 2 +-
 .../ignite/ci/teamcity/ignited/IgnitedTcInMemoryIntegrationTest.java    | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/teamcity/ignited/runhist/RunHistSync.java
b/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/teamcity/ignited/runhist/RunHistSync.java
index bc18ed8..b0662cd 100644
--- a/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/teamcity/ignited/runhist/RunHistSync.java
+++ b/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/teamcity/ignited/runhist/RunHistSync.java
@@ -155,7 +155,7 @@ public class RunHistSync {
     }
 
     @NotNull public Set<Integer> getFilteringParameters(String srvCode) {
-        Set<String> triggerParameters = this.cfg.getTrackedBranches().getBranches().stream().flatMap(
+        Set<String> triggerParameters = cfg.getTrackedBranches().getBranches().stream().flatMap(
             b -> b.getChainsStream()
                 .filter(ChainAtServerTracked::isTriggerBuild)
                 .filter(chain -> Objects.equals(chain.getServerId(), srvCode))
diff --git a/ignite-tc-helper-web/src/test/java/org/apache/ignite/ci/teamcity/ignited/IgnitedTcInMemoryIntegrationTest.java
b/ignite-tc-helper-web/src/test/java/org/apache/ignite/ci/teamcity/ignited/IgnitedTcInMemoryIntegrationTest.java
index daa7b77..4ab9476 100644
--- a/ignite-tc-helper-web/src/test/java/org/apache/ignite/ci/teamcity/ignited/IgnitedTcInMemoryIntegrationTest.java
+++ b/ignite-tc-helper-web/src/test/java/org/apache/ignite/ci/teamcity/ignited/IgnitedTcInMemoryIntegrationTest.java
@@ -48,6 +48,7 @@ import org.apache.ignite.ci.di.scheduler.DirectExecNoWaitScheduler;
 import org.apache.ignite.ci.di.scheduler.IScheduler;
 import org.apache.ignite.ci.jira.pure.IJiraIntegrationProvider;
 import org.apache.ignite.ci.tcbot.chain.PrChainsProcessorTest;
+import org.apache.ignite.ci.tcbot.conf.BranchesTracked;
 import org.apache.ignite.ci.tcbot.conf.ITcBotConfig;
 import org.apache.ignite.ci.tcbot.conf.ITcServerConfig;
 import org.apache.ignite.ci.tcmodel.changes.ChangesList;
@@ -748,6 +749,7 @@ public class IgnitedTcInMemoryIntegrationTest {
             when(tcCfg.logsDirectory()).thenReturn("logs");
             when(tcCfg.host()).thenReturn("http://ci.ignite.apache.org/");
             when(cfg.getTeamcityConfig(anyString())).thenReturn(tcCfg);
+            when(cfg.getTrackedBranches()).thenReturn(new BranchesTracked());
 
             bind(ITcBotConfig.class).toInstance(cfg);
         }


Mime
View raw message