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

This commit is contained in:
Thorsten Eckel 2021-03-15 09:22:23 +01:00
parent 12a5e9dba3
commit de76fb9a27
3 changed files with 3 additions and 3 deletions

View file

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

View file

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

View file

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