File tree 5 files changed +12
-8
lines changed
java/io/jenkins/plugins/pipelinegraphview
resources/io/jenkins/plugins/pipelinegraphview/consoleview/PipelineConsoleViewAction
5 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export async function getRunStatusFromPath(
43
43
url : string ,
44
44
) : Promise < RunStatus | null > {
45
45
try {
46
- const response = await fetch ( url + "pipeline-console /tree" ) ;
46
+ const response = await fetch ( url + "pipeline-overview /tree" ) ;
47
47
if ( ! response . ok ) {
48
48
throw response . statusText ;
49
49
}
Original file line number Diff line number Diff line change 1
1
package io .jenkins .plugins .pipelinegraphview ;
2
2
3
+ import static io .jenkins .plugins .pipelinegraphview .consoleview .PipelineConsoleViewAction .URL_NAME ;
4
+
3
5
import edu .umd .cs .findbugs .annotations .NonNull ;
4
6
import hudson .Extension ;
5
7
import hudson .model .Job ;
@@ -26,7 +28,7 @@ public String getName() {
26
28
@ NonNull
27
29
public String getRunURL (Run <?, ?> run ) {
28
30
if (run instanceof WorkflowRun ) {
29
- return DisplayURLProvider .getDefault ().getRunURL (run ) + "pipeline-console" ;
31
+ return DisplayURLProvider .getDefault ().getRunURL (run ) + URL_NAME ;
30
32
}
31
33
return DisplayURLProvider .getDefault ().getRunURL (run );
32
34
}
Original file line number Diff line number Diff line change 36
36
37
37
public class PipelineConsoleViewAction extends AbstractPipelineViewAction {
38
38
public static final long LOG_THRESHOLD = 150 * 1024 ; // 150KB
39
- public static final String URL_NAME = "pipeline-console " ;
39
+ public static final String URL_NAME = "pipeline-overview " ;
40
40
41
41
private static final Logger logger = LoggerFactory .getLogger (PipelineConsoleViewAction .class );
42
42
private final WorkflowRun target ;
@@ -52,7 +52,7 @@ public PipelineConsoleViewAction(WorkflowRun target) {
52
52
53
53
@ Override
54
54
public String getDisplayName () {
55
- return "Pipeline Console " ;
55
+ return "Pipeline Overview " ;
56
56
}
57
57
58
58
@ Override
@@ -62,7 +62,7 @@ public String getUrlName() {
62
62
63
63
@ Override
64
64
public String getIconClassName () {
65
- return "symbol-terminal -outline plugin-ionicons-api" ;
65
+ return "symbol-git-network -outline plugin-ionicons-api" ;
66
66
}
67
67
68
68
public String getDurationString () {
Original file line number Diff line number Diff line change 1
1
package io .jenkins .plugins .pipelinegraphview .utils ;
2
2
3
+ import static io .jenkins .plugins .pipelinegraphview .consoleview .PipelineConsoleViewAction .URL_NAME ;
4
+
3
5
import com .fasterxml .jackson .core .JsonProcessingException ;
4
6
import com .fasterxml .jackson .databind .ObjectMapper ;
5
7
import hudson .model .Action ;
@@ -144,7 +146,7 @@ public HttpResponse replayRun(StaplerRequest2 req) {
144
146
"url" ,
145
147
appendTrailingSlashIfRequired (req .getContextPath ())
146
148
+ run .getUrl ().replace ("/" + run .getNumber () + "/" , "/" + estimatedNextBuildNumber + "/" )
147
- + "pipeline-console/" );
149
+ + URL_NAME );
148
150
149
151
result .put ("success" , true );
150
152
return HttpResponses .okJSON (result );
Original file line number Diff line number Diff line change 30
30
31
31
<t : buildCaption controls =" ${controls}" >
32
32
<j : if test =" ${it.previousBuildNumber!=null}" >
33
- <a href =" ../../${it.previousBuildNumber}/pipeline-console " class =" jenkins-button jenkins-button--tertiary app-details__prev_next" tooltip =" ${%Previous Build}" >
33
+ <a href =" ../../${it.previousBuildNumber}/pipeline-overview " class =" jenkins-button jenkins-button--tertiary app-details__prev_next" tooltip =" ${%Previous Build}" >
34
34
<l : icon class =" symbol-chevron-back-outline plugin-ionicons-api icon-md" />
35
35
</a >
36
36
</j : if >
37
37
${it.buildDisplayName}
38
38
<j : if test =" ${it.nextBuildNumber!=null}" >
39
- <a href =" ../../${it.nextBuildNumber}/pipeline-console " class =" jenkins-button jenkins-button--tertiary app-details__prev_next" tooltip =" ${%Next Build}" >
39
+ <a href =" ../../${it.nextBuildNumber}/pipeline-overview " class =" jenkins-button jenkins-button--tertiary app-details__prev_next" tooltip =" ${%Next Build}" >
40
40
<l : icon class =" symbol-chevron-forward-outline plugin-ionicons-api icon-md" />
41
41
</a >
42
42
</j : if >
You can’t perform that action at this time.
0 commit comments