August 2017
Intermediate to advanced
332 pages
9h 16m
English
We can add a Compile stage to the pipeline using the following code:
stage("Compile") { steps { sh "./gradlew compileJava" }}
Note that we used exactly the same command locally and in the Jenkins pipeline, which is a very good sign because the local development process is consistent with the Continuous Integration environment. After running the build, you should see two green boxes. You can also check that the project was compiled correctly in the console log.
Read now
Unlock full access