August 2017
Intermediate to advanced
332 pages
9h 16m
English
Adding a code coverage stage to the pipeline is as simple as the previous stages:
stage("Code coverage") { steps { sh "./gradlew jacocoTestReport" sh "./gradlew jacocoTestCoverageVerification" }}
After adding this stage, if anyone commits code that is not well-covered with tests, the build will fail.
Read now
Unlock full access