Skip to content
Snippets Groups Projects
Commit e6943e9e authored by Teake Nutma's avatar Teake Nutma
Browse files

Split changed files jobs into multiple files

parent 0d79b479
Branches
No related merge requests found
include:
- local: '/templates/shared/stages.yml'
- local: '/templates/changedfiles.yml'
- local: '/templates/changedfiles/all.yml'
# TODO: replace with https://docs.gitlab.com/ee/api/lint.html
lint:
......
......@@ -31,19 +31,3 @@ include:
paths:
- changed_files.log
expire_in: 1 day
changed_files_push:
extends: .changed_files
rules:
- if: $CI_OPEN_MERGE_REQUESTS && $CI_PIPELINE_SOURCE == "push"
when: never
- if: $CI_PIPELINE_SOURCE == 'push'
before_script:
- COMPARE_REF=${CI_COMMIT_BEFORE_SHA}
changed_files_mr:
extends: .changed_files
rules:
- if: $CI_MERGE_REQUEST_ID
before_script:
- COMPARE_REF="origin/${CI_MERGE_REQUEST_TARGET_BRANCH_NAME}"
include:
- local: 'mergerequest.yml'
- local: 'push.yml'
include:
- local: '_shared.yml'
changed_files_mr:
extends: .changed_files
rules:
- if: $CI_MERGE_REQUEST_ID
before_script:
- COMPARE_REF="origin/${CI_MERGE_REQUEST_TARGET_BRANCH_NAME}"
include:
- local: '_shared.yml'
changed_files_push:
extends: .changed_files
rules:
- if: $CI_OPEN_MERGE_REQUESTS && $CI_PIPELINE_SOURCE == "push"
when: never
- if: $CI_PIPELINE_SOURCE == 'push'
before_script:
- COMPARE_REF=${CI_COMMIT_BEFORE_SHA}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment