job_defaults.yml 748 B

123456789101112131415161718192021222324252627282930
  1. default:
  2. image: $CI_REGISTRY/docker/zammad-ci:3.2.4
  3. tags:
  4. - docker
  5. # Most jobs execute ruby commands, so take that as default.
  6. cache: !reference [.cache, read_only_ruby]
  7. # Artifacts are stored for failed jobs
  8. artifacts:
  9. expire_in: 1 week
  10. when: on_failure
  11. paths:
  12. - tmp/screenshot*
  13. - tmp/screenshots/*
  14. - log/*.log
  15. interruptible: true
  16. # Initialize application env
  17. before_script:
  18. - !reference [.scripts, source_rvm]
  19. - !reference [.scripts, bundle_install]
  20. - !reference [.scripts, configure_environment]
  21. after_script:
  22. - .gitlab/environment_info.sh > log/environment_info.log
  23. # Copy logs from other containers to store them as artifacts.
  24. - cp /builds/*.log log/ || true