Skip to content

Draft: Add job navigation to trigger job show page

Mireya Andres requested to merge bridge-job-stage-nav into master

What does this MR do and why?

For #345046

This adds the jobs container and stages dropdown to the trigger job show page. Since the trigger job app is separate from the regular job app, some tweaking of the CSS had to be done to make the styling consistent.

Screenshots or screen recordings

Before (Trigger Job) After (Trigger Job)
Before After

There are no visual changes to the regular job page.

Before (Job) After (Job)
Before After

Recording of the stage navigation:

Job Navigation Job Navigation

How to set up and validate locally

  1. Enable the ci_retry_downstream_pipeline feature flag. (rails c then Feature.enable(:ci_retry_downstream_pipeline))
  2. Add the following content to your .gitlab-ci.yml file:
    stages:
      - prepare
      - deploy
    
    job:
      stage: prepare
      script:
        - echo "running prepare_job"
    
    triggerJob:
      stage: deploy
      trigger:
        include:
          - project: "/path/to/project" # replace with another project
            file: ".gitlab-ci.yml"
  3. Visit the pipeline and click on the triggerJob job pill.
  4. Site should redirect to the trigger show page.

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 Mireya Andres

Merge request reports