Skip to content

Allow build stage to be disabled

What does this MR do?

This will allow the auto devops build stage to be disabled using the variables $BUILD_DISABLED

Availability and Testing

Minimal risks. Functionality is only changed when setting the variable.

What additional test coverage or changes to tests will be needed? None

Will it require cross-browser testing? No

Use Case

  • Using auto devops to build a project
  • Extending the CI with a custom job (using the built container) to run on a schedule.
  • Every time the schedule runs the build job also runs (which is not requrired)
stages:
  - build
  - scheduled

include:
  - template: Jobs/Build.gitlab-ci.yml

scheduled customer job:
  image: $CI_REGISTRY_IMAGE:latest
  stage: scheduled
  script:
    - script to run job here
  rules:
    - if: '$RUN_CUSTOM_JOB == "true"'
Edited by Shane Davidson

Merge request reports