- Integrate Jacoco into your Maven pom.xml.
- Add into your file .gitlab-ci.yml: echo -n "Total:" ; cat target/site/jacoco/index.html | grep -o 'Total[^%]*%' | grep -o -E '[0-9]+%$
- Add Badge in Gitlab under Setting.
- Gitlab scann the console for the Regex you given in Point 3.
Keine Kommentare:
Kommentar veröffentlichen