Commit b065e7a3 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Omite build de CI para rama master

parent ea05d196
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -5,20 +5,22 @@ maven-build:
  stage: build
  image: redmic/maven-gitlab
  variables:
    MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository"
    MAVEN_OPTS: -Dmaven.repo.local=.m2/repository
  only:
    - branches
  except:
    - master
  cache:
    paths:
      - .m2/repository/
  script:
    - mvn deploy -B
    - "COVERAGE=$(xmllint --html --xpath '//table[@id=\"coveragetable\"]/tfoot//td[@class=\"ctr2\"][1]/text()' target/site/jacoco/index.html)"
    - 'echo "Coverage: $COVERAGE"'
    - 'echo "Coverage: ${COVERAGE}"'
  after_script:
    - rm -r .m2/repository/es
  artifacts:
    name: "$CI_PROJECT_NAME"
    name: "${CI_PROJECT_NAME}"
    expire_in: '6 months'
    paths:
      - target/*.jar