August 2017
Intermediate to advanced
332 pages
9h 16m
English
To sum up, throughout the recent chapters we have created quite a few stages, which results in a complete Continuous Delivery pipeline that could be successfully used in many projects.
Next we see the complete Jenkins file for the calculator project:
pipeline { agent any triggers { pollSCM('* * * * *') } stages { stage("Compile") { steps { sh "./gradlew compileJava" } } stage("Unit test") { steps { sh "./gradlew test" } } stage("Code coverage") { steps { sh "./gradlew jacocoTestReport" publishHTML (target: [ reportDir: 'build/reports/jacoco/test/html', reportFiles: 'index.html', reportName: "JaCoCo Report" ]) sh "./gradlew jacocoTestCoverageVerification" } } stage("Static code analysis") { steps { sh "./gradlew checkstyleMain" ...Read now
Unlock full access