Skip to content
Snippets Groups Projects
Verified Commit 1848c4c1 authored by Varac's avatar Varac
Browse files

CI: Fix caching between jobs

fog-aws gem was not installed so Job #19895 failed for b566104d
The reason was that caching was configured wrongly so files got
cached vertically for each job.
After re-configuring the gitlab-runner cache on beluga, caches
were lost and resulted in failing builds.
This commit configures caching in a way that we define one global
cache for all platform pipelines.

Resolves: #8872
parent 0a4a99a0
Branches
Tags
1 merge request!125CI: Fix caching between jobs
Pipeline #
...@@ -5,7 +5,7 @@ image: 0xacab.org:4567/leap/docker/ruby:latest ...@@ -5,7 +5,7 @@ image: 0xacab.org:4567/leap/docker/ruby:latest
# persistent on the gitlab-runner so we don't need to install from # persistent on the gitlab-runner so we don't need to install from
# scratch on every pipeline # scratch on every pipeline
cache: cache:
key: "$CI_BUILD_REF_NAME" key: "global_platform_cache_between_pipelines"
untracked: true untracked: true
paths: paths:
- tests/platform-ci/vendor/ - tests/platform-ci/vendor/
...@@ -51,15 +51,6 @@ catalog: ...@@ -51,15 +51,6 @@ catalog:
script: script:
- su -c '/usr/local/bin/bundle exec rake catalog' cirunner - su -c '/usr/local/bin/bundle exec rake catalog' cirunner
# rspec:
# stage: rspec
# script:
# - /usr/local/bin/bundle exec rake spec
# The deploy_test job is run on any merge request. This is used to ensure that
# the merge request will deploy and test properly. It is not run when the merge
# request is accepted into master, instead the 'latest' job below is run
# instead.
deploy_test: deploy_test:
stage: deploy stage: deploy
except: except:
...@@ -75,6 +66,7 @@ deploy_test:manual: ...@@ -75,6 +66,7 @@ deploy_test:manual:
only: only:
- master - master
when: manual when: manual
allow_failure: false
script: script:
- su -c 'set -o pipefail; stdbuf -oL -eL ./ci-build.sh | ts' cirunner - su -c 'set -o pipefail; stdbuf -oL -eL ./ci-build.sh | ts' cirunner
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment