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: ...@@ -45,7 +45,7 @@ build-for-staging:
paths: paths:
- target/*.war - target/*.war
rules: rules:
- if: $CI_COMMIT_REF_NAME == $MAIN_BRANCH - if: '$CI_COMMIT_REF_NAME == $MAIN_BRANCH && $CI_PIPELINE_SOURCE != "merge_request_event"'
build-for-production: build-for-production:
stage: build stage: build
...@@ -104,7 +104,7 @@ test: ...@@ -104,7 +104,7 @@ test:
tags: tags:
- java - java
rules: 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 - if: $CI_COMMIT_REF_NAME == $RELEASE_BRANCH
deploy-to-staging: deploy-to-staging:
...@@ -142,7 +142,7 @@ deploy-to-staging: ...@@ -142,7 +142,7 @@ deploy-to-staging:
tags: tags:
- java - java
rules: rules:
- if: $CI_COMMIT_REF_NAME == $MAIN_BRANCH - if: '$CI_COMMIT_REF_NAME == $MAIN_BRANCH && $CI_PIPELINE_SOURCE != "merge_request_event"'
environment: environment:
name: staging name: staging
url: https://vipscore02test.nibio.no url: https://vipscore02test.nibio.no
...@@ -158,7 +158,7 @@ upload-snapshot: ...@@ -158,7 +158,7 @@ upload-snapshot:
tags: tags:
- java - java
rules: rules:
- if: $CI_COMMIT_REF_NAME == $MAIN_BRANCH - if: '$CI_COMMIT_REF_NAME == $MAIN_BRANCH && $CI_PIPELINE_SOURCE != "merge_request_event"'
deploy-to-production: deploy-to-production:
stage: deploy stage: deploy
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment