From 5214351fddaba5a6c9bf20e56c287d350eb30243 Mon Sep 17 00:00:00 2001 From: James Ketrenos Date: Wed, 29 Jan 2020 10:35:03 -0800 Subject: [PATCH] Add 'git clean -fd' to before_script per gitlab issue #4080 Signed-off-by: James Ketrenos --- .gitlab-ci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3a9574d..5318d2c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,6 +17,8 @@ variables: TAG: "${CI_PIPELINE_IID}-${CI_COMMIT_REF_NAME}-${OS_DISTRO}-${PACKAGE_STREAM}" build_image: + before_script: + - git clean -fd stage: "build" script: - ./scripts/build-dockerfile.sh @@ -29,6 +31,8 @@ build_image: - triggers test_image: + before_script: + - git clean -fd stage: "test" script: - ./scripts/test-image.sh @@ -38,6 +42,8 @@ test_image: - triggers publish_image: + before_script: + - git clean -fd stage: "publish" script: - ./scripts/promote-image.sh