Skip to content

Commit 43fba55

Browse files
authored
Change '/pipeline-overview' to '/stages' (#1134)
1 parent f4243ea commit 43fba55

File tree

8 files changed

+13
-11
lines changed

8 files changed

+13
-11
lines changed

openapi.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ info:
1818
url: https://opensource.org/licenses/MIT
1919

2020
servers:
21-
- url: "{build_url}/pipeline-overview"
21+
- url: "{build_url}/stages"
2222
description: Pipeline Overview API - Individual pipeline run
2323
variables:
2424
build_url:
@@ -612,7 +612,7 @@ components:
612612
synthetic: false
613613
placeholder: false
614614
agent: "linux"
615-
url: "/job/my-pipeline/1/pipeline-overview?selected-node=6"
615+
url: "/job/my-pipeline/1/stages?selected-node=6"
616616

617617
StepListExample:
618618
summary: Example step list

src/main/frontend/common/RestClient.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export interface ConsoleLogData {
6565
}
6666

6767
export async function getRunStatusFromPath(url: string): Promise<RunStatus> {
68-
const response = await fetch(url + "pipeline-overview/tree");
68+
const response = await fetch(url + "stages/tree");
6969
if (!response.ok) {
7070
throw response.statusText;
7171
}

src/main/frontend/pipeline-console-view/pipeline-console/main/components/stages.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default function Stages({
3838
{onRunPage && (
3939
<a
4040
className={"pgv-stages-graph__controls pgv-stages-graph__heading"}
41-
href="pipeline-overview"
41+
href="stages"
4242
>
4343
Stages
4444
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">

src/main/java/io/jenkins/plugins/pipelinegraphview/consoleview/PipelineConsoleViewAction.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
import org.slf4j.LoggerFactory;
4949

5050
public class PipelineConsoleViewAction extends Tab {
51-
public static final String URL_NAME = "pipeline-overview";
51+
public static final String URL_NAME = "stages";
5252
public static final int CACHE_AGE = (int) TimeUnit.DAYS.toSeconds(1);
5353

5454
private static final Logger logger = LoggerFactory.getLogger(PipelineConsoleViewAction.class);
@@ -72,7 +72,7 @@ public PipelineConsoleViewAction(WorkflowRun target) {
7272

7373
@Override
7474
public String getDisplayName() {
75-
return "Stages";
75+
return Messages.stages();
7676
}
7777

7878
@Override

src/main/resources/components/temporary-wrapper.jelly

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,13 @@
9595

9696
<t:buildCaption controls="${controls}">
9797
<j:if test="${it.previousBuildNumber!=null}">
98-
<a href="../../${it.previousBuildNumber}/pipeline-overview" class="jenkins-button jenkins-button--tertiary app-details__prev_next" tooltip="${%Previous Build}">
98+
<a href="../../${it.previousBuildNumber}/stages" class="jenkins-button jenkins-button--tertiary app-details__prev_next" tooltip="${%Previous Build}">
9999
<l:icon class="symbol-chevron-back-outline plugin-ionicons-api icon-md" />
100100
</a>
101101
</j:if>
102102
${it.buildDisplayName}
103103
<j:if test="${it.nextBuildNumber!=null}">
104-
<a href="../../${it.nextBuildNumber}/pipeline-overview" class="jenkins-button jenkins-button--tertiary app-details__prev_next" tooltip="${%Next Build}">
104+
<a href="../../${it.nextBuildNumber}/stages" class="jenkins-button jenkins-button--tertiary app-details__prev_next" tooltip="${%Next Build}">
105105
<l:icon class="symbol-chevron-forward-outline plugin-ionicons-api icon-md" />
106106
</a>
107107
</j:if>

src/main/resources/io/jenkins/plugins/pipelinegraphview/Messages.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
stages=Stages
2+
13
startedAgo=Started {0} ago
24
noBuilds=No builds
35
queued=Queued {0}

src/test/java/io/jenkins/plugins/pipelinegraphview/PipelineGraphViewRebuildTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ void rerunButtonStartsNewBuild(Page p, JenkinsConfiguredWithCodeRule j) throws E
4242
.goToPipelineOverview();
4343

4444
String jobUrl = j.getURL() + job.getUrl();
45-
assertThat(p).hasURL(jobUrl + "1/pipeline-overview/");
45+
assertThat(p).hasURL(jobUrl + "1/stages/");
4646

4747
op.rerun();
4848

49-
assertThat(p).hasURL(jobUrl + "2/pipeline-overview/");
49+
assertThat(p).hasURL(jobUrl + "2/stages/");
5050

5151
waitUntilBuildIsComplete(j, run);
5252
}

src/test/java/io/jenkins/plugins/pipelinegraphview/playwright/PipelineOverviewPage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public class PipelineOverviewPage extends JenkinsPage<PipelineOverviewPage> {
1818
private final String jobUrl;
1919

2020
public PipelineOverviewPage(Page page, String jobUrl, String buildName) {
21-
super(page, jobUrl + "pipeline-overview/");
21+
super(page, jobUrl + "stages/");
2222
this.buildName = buildName;
2323
this.jobUrl = jobUrl;
2424
graph = new PipelineGraph(page.locator(".PWGx-PipelineGraph-container"));

0 commit comments

Comments
 (0)