Skip to content

Show pipeline status for the latest version of a catalog resource

Briley Sandlin requested to merge 409041-catalog-resource-pipeline-status into master

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
no_version with_release

How to set up and validate locally

Prerequisites

  1. Enable the feature flag Feature.enable(:ci_namespace_catalog_experimental)
  2. To set projects as a ci catalog resource, follow the instructions in this MR

To Test

  1. 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.
  2. You should be able to see the details page
  3. 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
  1. Navigate to Deploy >> Releases and create a new release
  2. 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.

Edited by Briley Sandlin

Merge request reports