File tree 5 files changed +59
-3
lines changed
pipeline-console-view/pipeline-console/main
java/io/jenkins/plugins/pipelinegraphview/utils
resources/io/jenkins/plugins/pipelinegraphview
consoleview/PipelineConsoleViewAction 5 files changed +59
-3
lines changed Original file line number Diff line number Diff line change @@ -310,3 +310,8 @@ div.split-pane {
310
310
a {
311
311
cursor : pointer !important ;
312
312
}
313
+
314
+ .app-details__prev_next {
315
+ color : inherit !important ;
316
+ text-decoration : none !important ;
317
+ }
Original file line number Diff line number Diff line change 52
52
height : 20px !important ;
53
53
color : currentColor !important ;
54
54
}
55
+
56
+ .app-details__prev_next {
57
+ color : inherit !important ;
58
+ text-decoration : none !important ;
59
+ }
Original file line number Diff line number Diff line change @@ -43,9 +43,32 @@ public Permission getConfigurePermission() {
43
43
}
44
44
45
45
public String getBuildDisplayName () {
46
+ return run .getDisplayName ();
47
+ }
48
+
49
+ public String getFullBuildDisplayName () {
46
50
return run .getFullDisplayName ();
47
51
}
48
52
53
+ public String getFullProjectDisplayName () {
54
+ return run .getParent ().getFullDisplayName ();
55
+ }
56
+
57
+ private String getBuildNumber (WorkflowRun run ) {
58
+ if (run != null ) {
59
+ return String .valueOf (run .getNumber ());
60
+ }
61
+ return null ;
62
+ }
63
+
64
+ public String getPreviousBuildNumber () {
65
+ return getBuildNumber (run .getPreviousBuild ());
66
+ }
67
+
68
+ public String getNextBuildNumber () {
69
+ return getBuildNumber (run .getNextBuild ());
70
+ }
71
+
49
72
public BallColor getIconColor () {
50
73
return run .getIconColor ();
51
74
}
Original file line number Diff line number Diff line change 2
2
3
3
<?jelly escape-by-default =' true' ?>
4
4
<j : jelly xmlns : j =" jelly:core" xmlns : l =" /lib/layout" xmlns : p =" /lib/pipeline-graph-view" >
5
- <l : layout title =" ${%Graph} [${it.buildDisplayName }]" type =" one-column" >
5
+ <l : layout title =" ${%Graph} [${it.fullBuildDisplayName }]" type =" one-column" >
6
6
<l : main-panel >
7
7
<div class =" jenkins-app-bar" >
8
8
<div class =" jenkins-app-bar__content" >
9
9
<h1 >
10
- <l : icon alt =" ${it.iconColor.description}" class =" ${it.buildStatusIconClassName} icon-xlg"
11
- tooltip =" ${it.iconColor.description}" />
10
+ <l : icon alt =" ${it.iconColor.description}"
11
+ class =" ${it.buildStatusIconClassName} icon-xlg"
12
+ tooltip =" ${it.iconColor.description}" />
13
+ ${it.fullProjectDisplayName}
14
+ <j : if test =" ${it.previousBuildNumber!=null}" >
15
+ <a href =" ../../${it.previousBuildNumber}/pipeline-graph" class =" app-details__prev_next" >
16
+ <l : icon class =" symbol-chevron-back-outline plugin-ionicons-api icon-md" tooltip =" ${%Previous Build}" />
17
+ </a >
18
+ </j : if >
12
19
${it.buildDisplayName}
20
+ <j : if test =" ${it.nextBuildNumber!=null}" >
21
+ <a href =" ../../${it.nextBuildNumber}/pipeline-graph" class =" app-details__prev_next" >
22
+ <l : icon class =" symbol-chevron-forward-outline plugin-ionicons-api icon-md" tooltip =" ${%Next Build}" />
23
+ </a >
24
+ </j : if >
13
25
</h1 >
14
26
</div >
15
27
<div class =" jenkins-app-bar__controls" >
Original file line number Diff line number Diff line change 8
8
<div class =" jenkins-app-bar__content" >
9
9
<h1 >
10
10
<l : icon alt =" ${it.iconColor.description}" class =" ${it.buildStatusIconClassName} icon-xlg" tooltip =" ${it.iconColor.description}" />
11
+ ${it.fullProjectDisplayName}
12
+ <j : if test =" ${it.previousBuildNumber!=null}" >
13
+ <a href =" ../../${it.previousBuildNumber}/pipeline-console" class =" app-details__prev_next" >
14
+ <l : icon class =" symbol-chevron-back-outline plugin-ionicons-api icon-md" tooltip =" ${%Previous Build}" />
15
+ </a >
16
+ </j : if >
11
17
${it.buildDisplayName}
18
+ <j : if test =" ${it.nextBuildNumber!=null}" >
19
+ <a href =" ../../${it.nextBuildNumber}/pipeline-console" class =" app-details__prev_next" >
20
+ <l : icon class =" symbol-chevron-forward-outline plugin-ionicons-api icon-md" tooltip =" ${%Next Build}" />
21
+ </a >
22
+ </j : if >
12
23
</h1 >
13
24
</div >
14
25
<div class =" jenkins-app-bar__controls" >
You can’t perform that action at this time.
0 commit comments