Add retryUrl for jobs query
What does this MR do and why?
This MR adds retryUrl for jobs query. Previously, the frontend used webPath + '/retry', but it doesn't work since we updated the webPath logic. The following MR will be using the new field on the frontend.
References
Screenshots or screen recordings
No visual changes
| Before | After |
|---|---|
How to set up and validate locally
- Add a .gitlab-ci.yml file to the repository. Example to create an environment with some deployments:
stages:
- deploy
variables:
DEPLOY_MESSAGE: "Simple deployment test"
deploy-job:
stage: deploy
image: alpine:latest
script:
- "echo 'Starting deployment...'"
- "echo 'Deploy message: $DEPLOY_MESSAGE'"
- "sleep 5"
- "echo 'Deployment completed successfully'"
environment:
name: test-env
url: https://test-example.com
when: manual
deploy-job-2:
stage: deploy
image: alpine:latest
script:
- "echo 'Second deployment job'"
- "sleep 3"
- "echo 'Second job completed'"
environment:
name: test-env-2
url: https://test2-example.com
when: manual
- Run the pipeline
- Once the environment is created, test the GraphQl query in the
/-/graphql-explorer:
query getEnvironmentDetails($fullPath: ID!, $environmentName: String) {
project(fullPath: $fullPath) {
id
environment(name: $environmentName) {
deployments {
nodes {
id
job {
id
webPath
retryPath
}
}
}
}
}
}
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Related to #556036 (closed)
Edited by Anna Vovchenko