From f7606649398d8100d480d5fb691f9948aa128b98 Mon Sep 17 00:00:00 2001 From: "Prasal, Rafal" Date: Thu, 19 Apr 2018 16:53:28 +0200 Subject: [PATCH] better name for pipeline job --- .../plugins/global_build_stats/JobBuildResultFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/hudson/plugins/global_build_stats/JobBuildResultFactory.java b/src/main/java/hudson/plugins/global_build_stats/JobBuildResultFactory.java index 77a59b4..328a3b0 100644 --- a/src/main/java/hudson/plugins/global_build_stats/JobBuildResultFactory.java +++ b/src/main/java/hudson/plugins/global_build_stats/JobBuildResultFactory.java @@ -26,7 +26,7 @@ public JobBuildResult createJobBuildResult(Run r){ } if (r instanceof WorkflowRun) { - name = ((WorkflowRun)r).getFullDisplayName(); + name = ((WorkflowRun)r).getFullDisplayName().replace(" ยป " ,"/").replaceAll(" #[1-9]+$",""); } return new JobBuildResult(