From d7e957f9e47e67c59e727de66b0442f4d2f443bc Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Mon, 10 Oct 2022 16:39:05 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8292a69..4ee9e2e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -26,9 +26,12 @@ test-job: # This job runs in the test stage. - |+ if [ -z "$CI_COMMIT_SHA" ]; then files=$(find . -name "*.zone" -printf %P) + echo "Pipeline régulier" else files=$(echo $(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA) | grep zone) + echo "Pipeline exceptionnel" fi + - |+ if [ -z "$files" ]; then echo "Pas de fichier de zone à tester"