You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by dp...@apache.org on 2019/03/11 18:05:59 UTC
[ignite-teamcity-bot] branch ignite-11461-2 updated (1001715 ->
d25a3b4)
This is an automated email from the ASF dual-hosted git repository.
dpavlov pushed a change to branch ignite-11461-2
in repository https://gitbox.apache.org/repos/asf/ignite-teamcity-bot.git.
from 1001715 IGNITE-11491: Revisions were added to JAXB model & Compacted DB model for TC Bot
new 090f5b2 IGNITE-11491: Revisions were added to JAXB model & Compacted DB model for TC Bot: Compilation fix
new d25a3b4 IGNITE-11491: Revisions were added to JAXB model & Compacted DB model for TC Bot: NPE fix
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.../ignite/ci/teamcity/ignited/ITeamcityIgnited.java | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
[ignite-teamcity-bot] 02/02: IGNITE-11491: Revisions were added to
JAXB model & Compacted DB model for TC Bot: NPE fix
Posted by dp...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
dpavlov pushed a commit to branch ignite-11461-2
in repository https://gitbox.apache.org/repos/asf/ignite-teamcity-bot.git
commit d25a3b4198bedd8030ad6f8c02d0b0612ccec8c5
Author: Dmitriy Pavlov <dp...@apache.org>
AuthorDate: Mon Mar 11 21:05:44 2019 +0300
IGNITE-11491: Revisions were added to JAXB model & Compacted DB model for TC Bot: NPE fix
---
.../ignite/ci/teamcity/ignited/ITeamcityIgnited.java | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/teamcity/ignited/ITeamcityIgnited.java b/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/teamcity/ignited/ITeamcityIgnited.java
index 36a039c..77301e0 100644
--- a/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/teamcity/ignited/ITeamcityIgnited.java
+++ b/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/teamcity/ignited/ITeamcityIgnited.java
@@ -207,14 +207,17 @@ public interface ITeamcityIgnited {
@Nullable
public default String getLatestCommitVersion(FatBuildCompacted build) {
List<RevisionCompacted> revisions = build.revisions();
- Optional<String> any = revisions.stream()
- .map(RevisionCompacted::commitFullVersion)
- .filter(s -> !Strings.isNullOrEmpty(s))
- .findAny();
-
- if (any.isPresent())
- return any.get(); // Not so good for several VCS roots, probably should use collection here and concatenate.
+ if (revisions != null) {
+ Optional<String> any = revisions.stream()
+ .map(RevisionCompacted::commitFullVersion)
+ .filter(s -> !Strings.isNullOrEmpty(s))
+ .findAny();
+
+ if (any.isPresent())
+ return any.get(); // Not so good for several VCS roots, probably should use collection here and concatenate.
+ }
+ //fallback version of commit hash extraction
int changeMax = -1;
int[] changes = build.changes();
for (int i = 0; i < changes.length; i++) {
[ignite-teamcity-bot] 01/02: IGNITE-11491: Revisions were added to
JAXB model & Compacted DB model for TC Bot: Compilation fix
Posted by dp...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
dpavlov pushed a commit to branch ignite-11461-2
in repository https://gitbox.apache.org/repos/asf/ignite-teamcity-bot.git
commit 090f5b2beddb84998e34de99beff94d822d9e989
Author: Dmitriy Pavlov <dp...@apache.org>
AuthorDate: Mon Mar 11 20:59:46 2019 +0300
IGNITE-11491: Revisions were added to JAXB model & Compacted DB model for TC Bot: Compilation fix
---
.../java/org/apache/ignite/ci/teamcity/ignited/ITeamcityIgnited.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/teamcity/ignited/ITeamcityIgnited.java b/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/teamcity/ignited/ITeamcityIgnited.java
index 825c564..36a039c 100644
--- a/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/teamcity/ignited/ITeamcityIgnited.java
+++ b/ignite-tc-helper-web/src/main/java/org/apache/ignite/ci/teamcity/ignited/ITeamcityIgnited.java
@@ -16,13 +16,13 @@
*/
package org.apache.ignite.ci.teamcity.ignited;
+import com.google.common.base.Strings;
import java.util.Collection;
import java.util.Date;
import java.util.List;
import java.util.Optional;
import java.util.Set;
import javax.annotation.Nullable;
-import jdk.internal.joptsimple.internal.Strings;
import org.apache.ignite.ci.analysis.SuiteInBranch;
import org.apache.ignite.ci.analysis.TestInBranch;
import org.apache.ignite.ci.tcmodel.agent.Agent;