Skip to content
Permalink
Browse files
Fix in master trends: sorting list of builds
  • Loading branch information
dspavlov committed Jul 4, 2019
1 parent 26622f3 commit 5ea380b73d9064608eca877ecd662b9a310b217a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
@@ -28,7 +28,7 @@
public static final String GITHUB_REF = "https://github.com/apache/ignite-teamcity-bot";

/** TC Bot Version. */
public static final String VERSION = "20190701";
public static final String VERSION = "20190704";

/** Java version, where Web App is running. */
public String javaVer;
@@ -211,7 +211,8 @@ private String taskName(String taskName) {
List<BuildRefCompacted> buildRefs = getAllBuildsCompacted(buildTypeId, branchName)
.stream()
.filter(b -> b.isFinished(compactor))
.filter(b -> b.status() != unknownStatus)
.filter(b -> b.status() != unknownStatus) //check build is not cancelled
.sorted(Comparator.comparing(BuildRefCompacted::id))
.collect(Collectors.toList());

if (buildRefs.isEmpty())

0 comments on commit 5ea380b

Please sign in to comment.