Skip to content
Snippets Groups Projects

Should not trigger pipeline

Merged Lene Wasskog requested to merge main into release
2 files
+ 5
5
Compare changes
  • Side-by-side
  • Inline
Files
2
+ 4
4
@@ -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
Loading