Skip to content
Snippets Groups Projects
Commit de780bb0 authored by Lene Wasskog's avatar Lene Wasskog
Browse files

chore: Ensure pipeline is not run on merge request

parent ca227cc9
Branches
Tags
2 merge requests!35build: New dummy version for testing the pipeline,!29Should not trigger pipeline
Pipeline #3807 passed
......@@ -45,7 +45,7 @@ build-for-staging:
paths:
- target/*.war
rules:
- if: $CI_COMMIT_REF_NAME == $MAIN_BRANCH
- if: '$CI_COMMIT_REF_NAME == $MAIN_BRANCH && $CI_PIPELINE_SOURCE != "merge_request_event"'
build-for-production:
stage: build
......@@ -104,7 +104,7 @@ test:
tags:
- java
rules:
- if: $CI_COMMIT_REF_NAME == $MAIN_BRANCH
- if: '$CI_COMMIT_REF_NAME == $MAIN_BRANCH && $CI_PIPELINE_SOURCE != "merge_request_event"'
- if: $CI_COMMIT_REF_NAME == $RELEASE_BRANCH
deploy-to-staging:
......@@ -142,7 +142,7 @@ deploy-to-staging:
tags:
- java
rules:
- if: $CI_COMMIT_REF_NAME == $MAIN_BRANCH
- if: '$CI_COMMIT_REF_NAME == $MAIN_BRANCH && $CI_PIPELINE_SOURCE != "merge_request_event"'
environment:
name: staging
url: https://vipscore02test.nibio.no
......@@ -158,7 +158,7 @@ upload-snapshot:
tags:
- java
rules:
- if: $CI_COMMIT_REF_NAME == $MAIN_BRANCH
- if: '$CI_COMMIT_REF_NAME == $MAIN_BRANCH && $CI_PIPELINE_SOURCE != "merge_request_event"'
deploy-to-production:
stage: deploy
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment