---
title: Jenkins
slug: docs/jenkins
icon: {"faIcon":"fa-brands fa-jenkins"}
docTags: 
createdAt: 2024-04-20T15:52:22.927Z
---

# Jenkins

:::BlockQuote
**Edition:** Enterprise + Open Source
:::

The Jenkins integration scans Jenkins build logs for credentials and other sensitive data.

## Configuration

The Jenkins integration can be configured in TruffleHog under **Integrations**, or via a local configuration file (below).

### Web configuration

Configure this integration from the **Integrations** page in TruffleHog. You'll need:

- The URL of your Jenkins server.
- Credentials for a scanner account (basic auth) — or no credentials, if your Jenkins instance allows unauthenticated access to build logs.

### Local configuration

Local configuration supports two authentication modes:

- **Basic auth** — uses a Jenkins account username and password.
- **Unauthenticated** — for Jenkins instances that allow anonymous read access to build logs.

**Basic auth**

:::BlockQuote
sources:
&#x20; \- connection:
&#x20;     "@type": type.googleapis.com/sources.Jenkins
&#x20;     endpoint: https\://jenkins.example.com
&#x20;     basicAuth:
&#x20;       username: scanner-account
&#x20;       password: XXXXXXXXXXXXXXXXXXXXXXXXXX
&#x20;   name: Jenkins logs
&#x20;   scanPeriod: 12h
&#x20;   type: SOURCE\_TYPE\_JENKINS
&#x20;   verify: true
:::

**Unauthenticated**

:::BlockQuote
sources:
&#x20; \- connection:
&#x20;     "@type": type.googleapis.com/sources.Jenkins
&#x20;     endpoint: https\://jenkins.example.com
&#x20;     unauthenticated: \{}
&#x20;   name: Jenkins logs
&#x20;   scanPeriod: 12h
&#x20;   type: SOURCE\_TYPE\_JENKINS
&#x20;   verify: true
:::

## Configuration options

| Field                 | Type    | Required | Description                                                                                 |
| --------------------- | ------- | -------- | ------------------------------------------------------------------------------------------- |
| endpoint              | string  | Yes      | The URI of the Jenkins server.                                                              |
| insecureSkipVerifyTls | boolean | No       | Skip TLS verification on the Jenkins server. Setting this to true may pose security issues. |

## Capabilities

| Feature                  | Supported |
| ------------------------ | --------- |
| Scan build logs          | ✅         |
| Scan base64-encoded data | ✅         |
| Auto-resume              | ✅         |

## Notes

- The Jenkins integration scans build logs only. Job artifacts are not scanned.
