You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by hb...@apache.org on 2019/03/11 23:32:45 UTC
[maven-dist-tool] branch master updated: improved output
This is an automated email from the ASF dual-hosted git repository.
hboutemy pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-dist-tool.git
The following commit(s) were added to refs/heads/master by this push:
new 81001dc improved output
81001dc is described below
commit 81001dcaa8e544c7bff15e7504339e042cae7e01
Author: Hervé Boutemy <hb...@apache.org>
AuthorDate: Tue Mar 12 00:32:41 2019 +0100
improved output
---
.../apache/maven/dist/tools/masterjobs/ListMasterJobsMojo.java | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/maven/dist/tools/masterjobs/ListMasterJobsMojo.java b/src/main/java/org/apache/maven/dist/tools/masterjobs/ListMasterJobsMojo.java
index 753f370..7ee3f40 100644
--- a/src/main/java/org/apache/maven/dist/tools/masterjobs/ListMasterJobsMojo.java
+++ b/src/main/java/org/apache/maven/dist/tools/masterjobs/ListMasterJobsMojo.java
@@ -148,6 +148,8 @@ public class ListMasterJobsMojo extends AbstractMavenReport
sink.head_();
sink.body();
+ sink.text( "Jenkins jobs for master branch sorted by status of last build:" );
+ sink.list();
Map<String, List<Result>> groupedResults = repoStatus.stream()
.collect( Collectors.groupingBy( Result::getStatus ) );
@@ -157,7 +159,9 @@ public class ListMasterJobsMojo extends AbstractMavenReport
.sorted( Map.Entry.comparingByKey( resultComparator() ) )
.forEach( e ->
{
- sink.text( "Jenkins jobs for master branch with status " + e.getKey() );
+ sink.listItem();
+ int size = e.getValue().size();
+ sink.text( size + " job" + ( size > 1 ? "s" : "" ) + " with status " + e.getKey() + ":" );
sink.list();
e.getValue().forEach( r ->
{
@@ -170,9 +174,10 @@ public class ListMasterJobsMojo extends AbstractMavenReport
} );
sink.list_();
- sink.table_();
+ sink.listItem_();
} );
+ sink.list_();
sink.body_();
}