Skip to content

Limit before_script to some specific jobs in CI

Takuya Noguchi requested to merge tnir-remove-default-before-script-from-ci into master

What does this MR do?

Limit before_script: source autodevops.sh to .review_template and .specs jobs to reduce the (default) before_script: section from 60 CI jobs to 21 CI jobs.

Specifying before_script: is hard to see if which jobs really need source scripts/ci/autodevops.sh.

before after
# of CI jobs including before_script: { source autodevops.sh } 60 21
(Source) https://gitlab.com/gitlab-org/charts/gitlab/-/ci/editor?branch_name=28554b30d3a9a315bc771a88a2398b6d2fd5236d&tab=2 https://gitlab.com/gitlab-org/charts/gitlab/-/ci/editor?branch_name=6fc7e565&tab=2 (was https://gitlab.com/gitlab-org/charts/gitlab/-/ci/editor?branch_name=tnir-remove-default-before-script-from-ci&tab=2 before merging)

Related issues

TODO

Checklist

See Definition of done.

For anything in this list which will not be completed, please provide a reason in the MR discussion.

Required

  • Merge Request Title and Description are up to date, accurate, and descriptive
  • MR targeting the appropriate branch
  • MR has a green pipeline on GitLab.com

Expected (please provide an explanation if not completing)

  • Test plan indicating conditions for success has been posted and passes
  • [n/a] Documentation created/updated
  • Tests added
  • [n/a] Integration tests added to GitLab QA
  • [n/a] Equivalent MR/issue for omnibus-gitlab opened
Edited by Takuya Noguchi

Merge request reports