Gradle Jenkins Integration


Gradle Jenkins Integration



In this section, we would be learning how to integrate our Gradle test with Jenkins.

To integrate Gradle with Jenkins we need to follow the below steps:

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.





SHARE THIS

Author:

My Name is Ankur Jain and I am currently working as Automation Test Architect.I am ISTQB Certified Test Manager,Certified UI Path RPA Developer as well as Certified Scrum Master with total 12 years of working experience with lot of big banking clients around the globe.I love to Design Automation Testing Frameworks with Selenium,Appium,Protractor,Cucumber,Rest-Assured, Katalon Studio and currently exploring lot in Dev-OPS as well. I am currently staying in Mumbai, Maharashtra. Please Connect with me through Contact Us page of this website.

Previous Post
Next Post