Update .gitlab-ci.yml file
This commit is contained in:
parent
faa550e0ae
commit
ae004efc82
|
@ -29,18 +29,16 @@ test-job: # This job runs in the test stage.
|
|||
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=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA)
|
||||
echo "Pipeline exceptionnel"
|
||||
fi
|
||||
|
||||
- |+
|
||||
if [ -z "$files" ]; then
|
||||
if [ ! "$files" =~ .*"zone".* ]; then
|
||||
echo "Pas de fichier de zone à tester"
|
||||
else
|
||||
echo "Test des zones $files."
|
||||
fi
|
||||
|
||||
- test -z "$files" && echo yep
|
||||
|
||||
deploy-job: # This job runs in the deploy stage.
|
||||
stage: deploy # It only runs when *both* jobs in the test stage complete successfully.
|
||||
|
@ -50,7 +48,7 @@ deploy-job: # This job runs in the deploy stage.
|
|||
then
|
||||
files=$(find . -name "*.zone" -printf %P)
|
||||
else
|
||||
files=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA | grep zone)
|
||||
files=$(git diff-tree --no-commit-id --name-only -r $CI_COMMIT_SHA)
|
||||
fi
|
||||
|
||||
- echo "Déploiement des zones $files..."
|
||||
|
|
Loading…
Reference in New Issue