Got it
use the following line:
- 'python /opt/cover2cover.py target/site/jacoco/jacoco.xml $CI_PROJECT_DIR/src/main/java/ > target/site/coverage.xml'
The important part is adding $CI_PROJECT_DIR/
in front of src/main/java
.
This is because gitlab expects source tags like this:
And the
sources
from Cobertura XML with paths in the format of<CI_BUILDS_DIR>/<PROJECT_FULL_PATH>/...
:
See Draft: fix: wip (!69) 路 Merge requests 路 Hannes Rosen枚gger / libsass-maven-plugin 路 GitLab for a working example.
I鈥檒l update the documentation accordingly.