From eeee613a186d49183a4601323cd4d8466ce7d47d Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.dos.anjos@gmail.com> Date: Wed, 21 Aug 2019 13:15:19 +0200 Subject: [PATCH] [gitlab-ci/nightlies] Move cleanup to **after** the build (executes even if it fails) --- bob/devtools/data/gitlab-ci/nightlies.yaml | 43 +++++++++++----------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/bob/devtools/data/gitlab-ci/nightlies.yaml b/bob/devtools/data/gitlab-ci/nightlies.yaml index 57693946..a707c5c9 100644 --- a/bob/devtools/data/gitlab-ci/nightlies.yaml +++ b/bob/devtools/data/gitlab-ci/nightlies.yaml @@ -10,28 +10,8 @@ variables: # Definition of our build pipeline order stages: - - cleanup - build - - -# Periodic cleanup of beta packages -cleanup: - stage: cleanup - tags: - - docker - image: continuumio/conda-concourse-ci - script: - - curl --silent "${BOOTSTRAP}" --output "bootstrap.py" - - python3 bootstrap.py -vv channel base - - source ${CONDA_ROOT}/etc/profile.d/conda.sh - - conda activate base - - bdt ci clean-betas -vv --dry-run - cache: &test_caches - key: "linux-cache" - paths: - - miniconda.sh - - ${CONDA_ROOT}/pkgs/*.tar.bz2 - - ${CONDA_ROOT}/pkgs/urls.txt + - cleanup # Build targets @@ -64,3 +44,24 @@ macosx: extends: .build_template tags: - macosx + + +# Periodic cleanup of beta packages +cleanup: + stage: cleanup + tags: + - docker + image: continuumio/conda-concourse-ci + when: always + script: + - curl --silent "${BOOTSTRAP}" --output "bootstrap.py" + - python3 bootstrap.py -vv channel base + - source ${CONDA_ROOT}/etc/profile.d/conda.sh + - conda activate base + - bdt ci clean-betas -vv --dry-run + cache: &test_caches + key: "linux-cache" + paths: + - miniconda.sh + - ${CONDA_ROOT}/pkgs/*.tar.bz2 + - ${CONDA_ROOT}/pkgs/urls.txt -- GitLab