Ask the Jenkins agent which Jenkins jobs the app knows about, by name or through a work item.
Ask for example:
- Which jobs build the payment service?
- Show me the job called
payment-service-deploy. - Which Jenkins jobs are linked to this work item?
How jobs are matched
| You ask about | The agent finds |
|---|---|
| A word, like “payment” | Jobs whose name or display name contains the word, ignoring case. |
| A job by its exact name | The job with exactly that name. If there is none, it searches for the name instead. |
| The jobs of a work item | The jobs with builds linked to the work item, or else the jobs whose name contains the work item key. |
A search doesn’t match folder names. Ask for the job’s own name, so deploy rather than team/deploy. Short,
distinctive words work best.
The answer
The agent lists each job with its name, its folders, the Jenkins site it is on, and a link to the job in Jenkins. With jobs on more than one site, it groups them by site. It also tells you when:
- a job no longer exists in Jenkins: the app keeps its builds for a while;
- the app doesn’t synchronize a job, so its builds aren’t kept up to date in Jira.
When a search finds many jobs, the agent shows the ten most relevant and suggests a more specific name.
Previous: Build Status of a Work Item
Next: Start Jenkins Builds