Skip to content

Add manual_confirmation on stage json

What does this MR do and why?

  1. Add manual_confirmation in Jobs keyword
  2. Return confirmation_message in stage.json
  3. Return confirmation_message in StatusAction graphql.

Connected to: #450715 (closed)

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

  1. Add manual_confirmation on job that we want to have manual confirmation
    1. You can use this example YAML

      stages:
        - build
        - second_stage
      
      build-job:
        stage: build
        script:
          - echo "11111..."
          - echo "Compile complete."
        manual_confirmation: This is Manualllll
      
      build_artifact:
        stage: build
        script:
          - echo "11111..."
          - echo "Compile complete."
        manual_confirmation: This is Manualllll
  2. Push to repository
  3. confirmation_message key should present in the stage.json
  4. confirmation_message should present in StatusAction graphql
Edited by Phawin Khongkhasawan

Merge request reports