Show an error in Schedules UI when a scheduled pipeline failed to be created.
Problem to solve
Customer encountered (internal only) an issue where in a scheduled pipeline will not run (even when ran manually via the CI/CD -> Schedules
UI). It turns out that the there is a logic error in .gitlab-ci.yml
where the main job uses the needs
keyword and pointed to a job that has except:schedules
set.
Intended users
User experience goal
The user should be able to see a helpful error message either in the CI/CD -> Schedules
or CI/CD -> Pipelines
when a scheduled pipeline failed to be created due to logic error in .gitlab-ci.yml
.
Proposal
Add a pipeline schedule status to reflect that the scheduled pipeline was not created as scheduled.
Further details
Steps to reproduce scenario:
- Create a project
- Add the following as the CI configuration that passes lint checker
build: stage: build script: echo test: stage: test needs: ['build'] script: echo except: - schedules deploy: stage: deploy needs: ['test'] script: echo
- Create a daily pipeline schedule against the default branch under CI/CD > Schedules page
- Await the schedule execution time, or attempt an immediate execution of the schedule
- Schedule does not launch a pipeline
- Intuitively head to CI/CD > Pipelines page to try to find why the schedule failed to run
- No pipeline entry matching the schedule appears in CI/CD > Pipelines page
- There's zero information anywhere on the UI as to why the schedule failed to run
Permissions and Security
Documentation
Availability & Testing
What does success look like, and how can we measure that?
What is the type of buyer?
Is this a cross-stage feature?
Links / references
Customer information
Edited by Max Fan