Update .gitlab-ci.yml file
This commit is contained in:
parent
9fbc51db55
commit
d7e957f9e4
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue