Compare commits
No commits in common. "9fdea31a98c7503f654e10367e1290e14d798830" and "69bbceacfe1709db4143da808db8e2a98fd6bcf1" have entirely different histories.
9fdea31a98
...
69bbceacfe
|
@ -1,7 +1,6 @@
|
|||
# 本次构建的阶段: compile、package、deploy
|
||||
stages :
|
||||
- sonarqube-check
|
||||
- coverage
|
||||
- compile
|
||||
- integration-test
|
||||
- package
|
||||
|
@ -27,30 +26,11 @@ sonarqube-check :
|
|||
- main
|
||||
- develop
|
||||
|
||||
coverage:
|
||||
# Must be in a stage later than test-jdk11's stage.
|
||||
# The `visualize` stage does not exist by default.
|
||||
# Please define it first, or choose an existing stage like `deploy`.
|
||||
stage: coverage
|
||||
tags:
|
||||
- linux-maven
|
||||
image: registry.gitlab.com/haynes/jacoco2cobertura:1.0.7
|
||||
script:
|
||||
# convert report from jacoco to cobertura, using relative project path
|
||||
- python /opt/cover2cover.py target/site/jacoco/jacoco.xml $CI_PROJECT_DIR/src/main/java/ > target/site/cobertura.xml
|
||||
needs: ["sonarqube-check"]
|
||||
artifacts:
|
||||
reports:
|
||||
coverage_report:
|
||||
coverage_format: cobertura
|
||||
path: target/site/cobertura.xml
|
||||
|
||||
# 编译
|
||||
compile :
|
||||
stage : compile
|
||||
tags :
|
||||
- linux-maven
|
||||
needs: ["coverage"]
|
||||
only :
|
||||
- master
|
||||
script:
|
||||
|
@ -79,7 +59,6 @@ package :
|
|||
stage : package
|
||||
tags :
|
||||
- linux-maven
|
||||
needs: ["coverage"]
|
||||
only :
|
||||
- master
|
||||
script:
|
||||
|
|
Loading…
Reference in New Issue