Commit 0720a407 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Aplica mejoras procedentes de template

parent 4906b4a6
Loading
Loading
Loading
Loading
+21 −15
Original line number Diff line number Diff line
image: redmic/maven-gitlab

after_script:
  - rm -r .m2/repository/es
stages:
  - build

maven-build:
  stage: build
  image: redmic/maven-gitlab
  variables:
  MAVEN_CLI_OPTS: "--batch-mode"
    MAVEN_OPTS: "-Dmaven.repo.local=.m2/repository"
  
  only:
    - dev
  cache:
    paths:
      - .m2/repository/

deploy:
  script:
    - mvn $MAVEN_CLI_OPTS deploy
    - mvn deploy -B
    - "COVERAGE=$(xmllint --html --xpath '//table[@id=\"coveragetable\"]/tfoot//td[@class=\"ctr2\"][1]/text()' target/site/jacoco/index.html)"
    - 'echo "Coverage: $COVERAGE"'
  after_script:
    - rm -r .m2/repository/es
  artifacts:
    name: "$CI_PROJECT_NAME"
    expire_in: '6 months'
    paths:
      - target/*.jar