Browse Source

Maintenance: Run special GitLab CI jobs only if previous stage completes successfully.

Thorsten Eckel 4 years ago
parent
commit
de76fb9a27
3 changed files with 3 additions and 3 deletions
  1. 1 1
      .gitlab/ci/integration/slack.yml
  2. 1 1
      .gitlab/ci/pre.yml
  3. 1 1
      .gitlab/ci/rspec.yml

+ 1 - 1
.gitlab/ci/integration/slack.yml

@@ -7,7 +7,7 @@ slack:
     - if: '$CI_COMMIT_BRANCH =~ /^private/'
       when: manual
       allow_failure: true
-    - when: always
+    - when: on_success
   script:
     - bundle exec rake zammad:db:unseeded
     - echo "gem 'slack-ruby-client'" >> Gemfile.local

+ 1 - 1
.gitlab/ci/pre.yml

@@ -52,7 +52,7 @@ global_refresh_envs:
     - if: '$CI_COMMIT_BRANCH =~ /^private/'
       when: manual
       allow_failure: true
-    - when: always
+    - when: on_success
 
   script:
     - bundle exec rake zammad:ci:refresh_envs

+ 1 - 1
.gitlab/ci/rspec.yml

@@ -36,7 +36,7 @@ rspec:mysql:integration:
     - if: '$CI_COMMIT_BRANCH =~ /^private/'
       when: manual
       allow_failure: true
-    - when: always
+    - when: on_success
   script:
     - bundle exec rake zammad:db:init
     - bundle exec rspec -t type:integration