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
...@@ -2,6 +2,14 @@ variables: ...@@ -2,6 +2,14 @@ variables:
SECURE_ANALYZERS_PREFIX: registry.gitlab.com/gitlab-org/security-products/analyzers SECURE_ANALYZERS_PREFIX: registry.gitlab.com/gitlab-org/security-products/analyzers
DOCKER_IMAGE_SHA: ${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHA} 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: stages:
- .pre - .pre
- test - test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment