Skip to content

Run GitLab CI for all MRs/PRs#6116

Merged
mitchellhenke merged 1 commit intomainfrom
mitchellhenke/more-gitlab-ci
Mar 30, 2022
Merged

Run GitLab CI for all MRs/PRs#6116
mitchellhenke merged 1 commit intomainfrom
mitchellhenke/more-gitlab-ci

Conversation

@mitchellhenke
Copy link
Contributor

#6115 may have been a bit too strict

changelog: Internal, Continuous Integration, Limit when GitLab CI runs to avoid queuing too many builds
@mitchellhenke mitchellhenke force-pushed the mitchellhenke/more-gitlab-ci branch from e2f4d50 to d38d1c6 Compare March 29, 2022 14:29
Copy link
Contributor

@zachmargolis zachmargolis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

when: never
- if: '$CI_PIPELINE_SOURCE == "merge_request_event" || $CI_PIPELINE_SOURCE == "external_pull_request_event"'
- if: '$CI_COMMIT_BRANCH == "main" || $CI_COMMIT_BRANCH == "stages/prod"'
- if: '$CI_MERGE_REQUEST_IID || $CI_EXTERNAL_PULL_REQUEST_IID'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was surprised to see IID instead of ID ... but verified it's the real deal! https://docs.gitlab.com/ee/ci/variables/predefined_variables.html

@mitchellhenke mitchellhenke merged commit 0134222 into main Mar 30, 2022
@mitchellhenke mitchellhenke deleted the mitchellhenke/more-gitlab-ci branch March 30, 2022 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants