From 1848c4c1f580ede26695a4731e280bc40d88f9a3 Mon Sep 17 00:00:00 2001 From: Varac Date: Thu, 28 Sep 2017 12:01:22 +0200 Subject: 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 --- .gitlab-ci.yml | 12 ++---------- 1 file 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 -- cgit v1.2.3