summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVarac <varac@leap.se>2017-09-28 12:01:22 +0200
committerVarac <varac@leap.se>2017-09-28 17:26:24 +0200
commit1848c4c1f580ede26695a4731e280bc40d88f9a3 (patch)
treecbae55c2ee10a11253d6b27bd9f8d4be1c7c2bad
parent0a4a99a0b289402cf527702b91b287e9c6a3cc7c (diff)
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
-rw-r--r--.gitlab-ci.yml12
1 files changed, 2 insertions, 10 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5933331b..00dcb2b5 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -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
# scratch on every pipeline
cache:
- key: "$CI_BUILD_REF_NAME"
+ key: "global_platform_cache_between_pipelines"
untracked: true
paths:
- tests/platform-ci/vendor/
@@ -51,15 +51,6 @@ catalog:
script:
- 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:
stage: deploy
except:
@@ -75,6 +66,7 @@ deploy_test:manual:
only:
- master
when: manual
+ allow_failure: false
script:
- su -c 'set -o pipefail; stdbuf -oL -eL ./ci-build.sh | ts' cirunner