Skip to content
Snippets Groups Projects
Commit 5c34616e authored by istmxrein's avatar istmxrein Committed by Manuel Kieweg
Browse files

add workflow rule to prevent duplicated pipelines

parent 439be7a9
No related branches found
No related tags found
1 merge request!168pnd adapter skeleton
This commit is part of merge request !168. Comments created here will be created in the context of that merge request.
......@@ -2,6 +2,14 @@ variables:
SECURE_ANALYZERS_PREFIX: registry.gitlab.com/gitlab-org/security-products/analyzers
DOCKER_IMAGE_SHA: ${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHA}
workflow:
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: '$CI_PIPELINE_SOURCE == "schedule"'
- if: '$CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS && $CI_PIPELINE_SOURCE == "push"'
when: never
- if: '$CI_COMMIT_BRANCH'
stages:
- .pre
- test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment