Show pipeline status for the latest version of a catalog resource
What does this MR do and why?
Related to #409041 (closed)
- Added a pipeline status badge to the CI Resource Details page header
- Added a version badge to the header
Screenshots or screen recordings
No release | With release |
---|---|
How to set up and validate locally
Prerequisites
- Enable the feature flag
Feature.enable(:ci_namespace_catalog_experimental)
- To set projects as a ci catalog resource, follow the instructions in this MR
To Test
- Navigate to http://127.0.0.1:3000/flightjs/Flight/-/ci/catalog/resources/1 (replace project path with your project of choice) Note: You can also navigate to Build >> Pipeline editor and click the 'Browse CI/CD Catalog' button and choose a project from the list.
- You should be able to see the details page
- Navigate to Build >> Pipeline editor, create a
gitlab-ci.yml
file, and commit to the main branch. You can simply add something like:
job:
script:
- sleep 5
- Navigate to Deploy >> Releases and create a new release
- Navigate back to the original catalog resource detail page for your project and observe that there are now badges for the version and pipeline status.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Briley Sandlin