Skip to content
Permalink
Browse files
IGNITE-10095: Support Build Parameters specifying: bugfixing
  • Loading branch information
dspavlov committed May 8, 2019
1 parent 6f332cd commit a9a276eb30bf4ee4d38b41e36778f5d6ab3afa33
Showing 2 changed files with 3 additions and 1 deletion.
@@ -155,7 +155,7 @@ public void saveToHistoryLater(String srvCode, FatBuildCompacted build) {
}

@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))
@@ -48,6 +48,7 @@
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 @@ private static class IgniteAndSchedulerTestModule extends AbstractModule {
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);
}

0 comments on commit a9a276e

Please sign in to comment.