Friday, September 20, 2019

Post#99.GIT integration with Jenkins


GIT integration with Jenkins


Step#1.  Push your Automation project to GitHub repository. And copy the URL of that repository.

Step#2. Create a Freestyle project in Jenkins as discussed earlier.

Step#3. Select Git under Source Code Management. Paste the repository URL that you copied in Step#1.


Step#4. Under Build section select Execute Windows batch command and put the below maven command. Click on Apply and Save.


mvn test



You are done with GitHub integration with Jenkins. Now execute your build. It will execute your Job/Build by fetching code from GitHub.

No comments:

Post a Comment