Java API for Jenkins

I am writing a Java application where I need to monitor Jenkins build status and take several steps to succeed and fail.

I'm brand new to Jenkins. Is there a Java api for keeping track of the build state?

Is it possible to start a Java application on success or during a build failure.

Your suggestions are welcome.

Thanks, Santhosh

+3


source to share


1 answer


There is Jenkins REST API that can meet your needs

Also, there are literally hundreds of plugins for Jenkins, so it is likely that you can start your entire process from Jenkins using

Assembling the pipeline



This plugin provides a Build Pipeline View of upstream and downstream related jobs that would typically form a build pipeline. In addition, it offers the ability to define manual triggers for tasks that require intervention before execution, for example. approval process outside of Jenkins.

Multijob

Provides the ability to define a complex and hierarchical job structure in Jenkins.

+2


source







All Articles