Skip to content
Snippets Groups Projects
Verified Commit ac6dea85 authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Only run CI jobs if the jobs before succeeded

parent c6daaa85
Branches
Tags
No related merge requests found
Pipeline #2465 failed
...@@ -23,7 +23,7 @@ build: ...@@ -23,7 +23,7 @@ build:
- "./gradlew build" - "./gradlew build"
rules: rules:
- if: "$CI_COMMIT_BRANCH == 'main'" - if: "$CI_COMMIT_BRANCH == 'main'"
when: always when: on_success
test: test:
stage: "test" stage: "test"
...@@ -37,7 +37,7 @@ test: ...@@ -37,7 +37,7 @@ test:
- "build/test-results/**/TEST-*.xml" - "build/test-results/**/TEST-*.xml"
rules: rules:
- if: "$CI_COMMIT_BRANCH == 'main'" - if: "$CI_COMMIT_BRANCH == 'main'"
when: always when: on_success
dependencies: dependencies:
- "build" - "build"
...@@ -54,4 +54,4 @@ release: ...@@ -54,4 +54,4 @@ release:
- "test" - "test"
rules: rules:
- if: "$CI_COMMIT_TAG != '' && $CI_COMMIT_BRANCH == 'main'" - if: "$CI_COMMIT_TAG != '' && $CI_COMMIT_BRANCH == 'main'"
when: always when: on_success
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment