Jenkins
Jenkins is a leading open-source automation server and continuous integration/continuous delivery (CI/CD) platform used for automating software development processes including building, testing, and deploying applications. This data integration platform provides comprehensive visibility into Jenkins infrastructure, automation pipelines, build processes, job configurations, and execution history.
| Category | Source control & CI/CD |
| Direction | Query source |
| Sign-in | Username and Password/API Token |
| Query languages | SQLite |
| Tables | 8 |
| Query templates | 39 |
| Website | jenkins.io |
Before you start
Huntbase signs in to Jenkins with Username and Password/API Token. Create the credential in Jenkins first, then keep it to hand for the Connect step.
- Sign in to Jenkins as the user Huntbase should connect as.
- Click your name in the top-right corner, then click Security. You can also go to
<server>/me/security. - Create or copy your API token there.
- The connection has the same permissions as the Jenkins user it signs in as.
For the vendor's own instructions, see Jenkins API token documentation.
Use a dedicated, read-only credential for Huntbase where the product allows it. Huntbase only needs to read.
Connect Jenkins
- Go to Connections and click New connection, or click New connection on the Jenkins product page.
- On Product, pick Jenkins and choose the Owner.
- On Details, give the connection a Name and, optionally, a Description.
- On Connect, fill in the settings and credentials described below.
- On Verify, review the summary and click Create & check.
For everything else on the setup page — saving a draft, I'll do this later, and what each check result means — see Connections.
Settings
Where your Jenkins lives:
| Field | Required | Notes |
|---|---|---|
| Server URL | Yes | The fully qualified root URL of your Jenkins server, such as https://ci.example.com. |
| Username | Yes |
Credentials
The only Method is Username and Password/API Token. Enter a Credential label (for example Production), then fill in:
| Field | Required | Notes |
|---|---|---|
| Password/API Token | Yes | Use an API token here rather than the account password. Secret — not shown again after you save it. |
Query it
Once connected, Jenkins can serve these languages in a query tab, and Scout can use it when you ask in Auto:
| Language | Use it for |
|---|---|
| SQLite | SQL over the 8 tables listed below, alongside every other connected source. |
Example: SQLite
Total number of nodes — Count the total number of nodes in a Jenkins environment to understand the scale of build and test infrastructure.
select
count(1) as number_of_nodes
from
jenkins_node;
Jenkins ships with 39 query templates. Find them in Library › Queries — see Query templates.
Tables
Jenkins adds 8 tables. Browse their columns from Schema in the query bar's ⋯ menu.
All 8 tables
| Table | Contains |
|---|---|
jenkins_build | Result of a single execution of a job |
jenkins_folder | A container that stores job projects in it. Unlike view, which is just a filter, a folder creates a separate namespace, so you can have multiple things of the same name as long as they are in different folders. |
jenkins_freestyle_project | A user-configured description of work which Jenkins should perform, such as building a piece of software, etc. |
jenkins_job | A user-configured description of work which Jenkins should perform. This table is a generic representation of a Jenkins Job. |
jenkins_node | A machine which is part of the Jenkins environment and capable of executing Pipelines or jobs. |
jenkins_pipeline | Orchestrates long-running activities that can span multiple build agents. Suitable for building pipelines (formerly known as workflows) and/or organizing complex activities that do not easily fit in free-style job type. |
jenkins_plugin | An extension to Jenkins functionality provided separately from Jenkins Core. |
jenkins_user | An extension to Jenkins functionality provided separately from Jenkins Core. |
Next steps
- Connections — health, credentials and settings after you connect
- Query languages — syntax, parameters and time ranges
- Chatting with Scout — ask questions without writing a query
- All integrations — the rest of the catalog