I already managed to connect my git and automate Gradle build and execute android lint as the post-build action of the Jenkins. I can see the lint-results.xml file created in the following location.
myapp/app/build/reports/lint-results.xml
As the next approach, I need to read this XML file (preferably using Java). I can write a program which reads XML elements but how can we identify if the Jenkins build is successful which results in triggering the XML reading java app?
Is it possible to add this java app to the post-build process of the Jenkins too? So it should be able to execute once the lint check is complete and the XML file is created.
Appreciate your insight as I'm new to Jenkins. Thanks.