The idea is:
Have a tool and action to get all the items inside a folder. Currently only can get the builds, not the list of items.
My use case:
Have a list of jobs to trigger, with the action get all and execute only the jobs that are in the list.
I think it would be beneficial to add this because:
Esxecute multiple jobs with one simple workflow trigger.
Any resources to support this?
Here’s a breakdown of the methods:
- Using the Jenkins API:
- List all jobs:
http://<jenkins_url>/api/json?tree=jobs[name,color]
will return a JSON response with job names and their status (color).
- List running jobs:
You can either look for the “ball” icon animation in the job’s JSON representation (indicating it’s running) or use the View Job Filters Plugin to filter for running jobs.
- List jobs with specific parameters:
You can filter jobs based on build parameters using the tree
and xpath
parameters in the API (e.g., filtering by a specific Git commit).