Commit 17a7995d authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Merge branch 'dev' into 'master'

Comprueba existencia antes de extraer cobertura

See merge request redmic-project/gitlab-ci-templates!11
parents 54cadf21 0ac37de8
Loading
Loading
Loading
Loading
+7 −2
Original line number Diff line number Diff line
@@ -12,8 +12,13 @@ variables:
  script:
    - mvn -pl :${MAVEN_PROJECT_NAME} -U -B clean ${MAVEN_GOALS}
    - coveragePath="${PROJECT_ROOT_PATH}/${TEST_OUTPUT_PATH}/site/jacoco/index.html"
    - coverage=$(xmllint --html --xpath "${TEST_COVERAGE_XPATH}" "${coveragePath}")
    - echo "Coverage - ${coverage}"
    - >
      if [ -f "${coveragePath}" ];
      then
        coverage=$(xmllint --html --xpath "${TEST_COVERAGE_XPATH}" "${coveragePath}");
        echo "Coverage - ${coverage}";
      fi

  after_script:
    - rm -r .m2/repository/es
  only: