From b7d07b828745d1a3adb97cb12c74776abc57205a Mon Sep 17 00:00:00 2001 From: Adrien Bourmault Date: Mon, 10 Oct 2022 16:39:59 +0000 Subject: [PATCH] Update .gitlab-ci.yml file --- .gitlab-ci.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4ee9e2e..2257c61 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -24,11 +24,12 @@ test-job: # This job runs in the test stage. stage: test # It only starts when the job in the build stage completes successfully. script: - |+ - if [ -z "$CI_COMMIT_SHA" ]; then - files=$(find . -name "*.zone" -printf %P) + 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) + #files=$(echo $(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA) | grep zone) echo "Pipeline exceptionnel" fi @@ -45,7 +46,8 @@ deploy-job: # This job runs in the deploy stage. stage: deploy # It only runs when *both* jobs in the test stage complete successfully. script: - |+ - if [ -z "$CI_COMMIT_SHA" ]; then + if [ -z "$CI_COMMIT_SHA" ] + then files=$(find . -name "*.zone" -printf %P) else files=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA | grep zone)