In this section, we would be learning how to integrate
our Gradle test with Jenkins.
1)
Login into Jenkinsร Manage Jenkinsร Plugin Manager.
2)
In the Installed tab type Gradle and install Gradle plugin.
3) Once this is completed again go into Jenkins's home page.
4)
Jenkinsร Manage Jenkinsร Global tool
configuration.
5) In the Gradle, Installation section click on Add Gradle and
provide configuration like
6)
Click on Apply and Save.
7)
Now we need to create a new freestyle Jenkins job.
8)
In Build Section select option as “Invoke Gradle Script”.
9) In the task section, we need to provide a clean test to execute our
test and also in the Build file section we need to provide the complete path of
our build.gradle file.
10) Click on Apply and Save.
Now once we execute our Jenkins job we would be
able to view that our Gradle project is executing successfully.