Have integrations with Jenkins to get All the items inside a Folder

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:

  1. 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).

Are you willing to work on this? Yes

If you want to use this within the n8n ecosystem, you could try create a community node to talk to Jenkins from n8n. You can then submit it to us if you would like the node to be available on cloud here

Hey @Williams_Vega, hope all is well.

When you say items, do you mean jobs?

Help me understand what is missing from the current node implementation? The fact the you cannot get the jobs? Is this what you are looking for? So that you can get the list of existing Jobs, compare them to a pre-defined list of Jobs, and trigger those that match?