How to get the list of all projects/jobs in jenkins using java programaticaly? -


i newbie jenkins , trying access list of jobs/projects in jenkins , project files in java not groovy , parsing xml files.

ps: feel free edit thread! if downvoting comment reason!

like @vitalii said better in groovy or other scripting languages or parse api/xml file workspace job list.

for case can making class extending trigger , using job object of class trigger.

note: include other default classes jenkins plugin requires , make sure plugin runs every minute code execute properly.

public class xyz extends trigger<buildableitem> {     @override     public void run()     {               logger.info("project name"+job.getname());             } } 

Comments

Popular posts from this blog

angularjs - Redirect to a new template in angular js -

Oracle SQL. How to select specific IDs where value of columns specify criteria? -

Desktop Launcher for Python Script Starts Program in Wrong Path (Linux) -