Commit 9c3e897e authored by Miguel Angel Reina Ortega's avatar Miguel Angel Reina Ortega
Browse files

Adding quite mode for git clean

parent dfa1758e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -16,6 +16,7 @@ workflow:
    
variables:
  LOGFILE_OPENAPI: "openapi-validation.log"
  GIT_CLEAN_FLAGS: -ffdxq

stages:
  - validation
@@ -30,7 +31,6 @@ Validate OpenAPI:
  script:
    - echo 'Validate OpenAPI'
    - docker run --rm -v $(pwd):"/specs" etsiforge/swagger-cli:4.0.3 /bin/sh -c "sh specs/validate-all-in-docker.sh"
    - echo 'Generate config'
    #- ./validate-all.sh $(pwd)
  artifacts:
    name: "$CI_JOB_NAME"
+6 −2
Original line number Diff line number Diff line
@@ -39,8 +39,12 @@ then
    echo -e "\n---- Errors detected ----" | tee -a $LOGFILE
    echo -e $ERR  | tee -a $LOGFILE
fi
echo -e "\n---- Complete log of validation ----" | tee -a $LOGFILE
echo -e $LOG | tee -a $LOGFILE

echo -e "\n---- Complete log of validation ----" >> $LOGFILE
echo -e $LOG >> $LOGFILE

# echo -e "\n---- Complete log of validation ----" | tee -a $LOGFILE
# echo -e $LOG | tee -a $LOGFILE
#echo -e "\n------ Content of the folder ------" | tee -a $LOGFILE
#ls | tee -a $LOGFILE
mv $LOGFILE specs/