> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Jenkins recent builds

> Mount Jenkins recent builds.

Follow the [REST app guide](https://docs.bijection.com/integrations/native-rest.md#mount-and-bind).
Bind the reviewed endpoint with `providerEndpoint` from `@bijectionhq/app-rest`.

The agent’s receiver must be able to reach the Jenkins HTTPS origin directly. Include the installation context and nested job path if used. Seal the Base64 encoding of `username:api-token` as `authorization` with the `Basic ` prefix. Grant the account read access to the job.

```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
const provider = providerEndpoint(
  "jenkins.job.recent-builds.observations",
  "https://jenkins.example.com",
  "/job/project/api/json",
  auth,
  data,
);
```

Pass `provider` as `receivers.provider`, and the same label to the binder and as the app's `data`. Call `source.initialize`
with this profile.

```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
{ profile: { mode: "provider", provider: "jenkins.job.recent-builds.observations", limit: 25 } }
```

One job’s bounded recent build list keyed by build number. The JSON tree filter requests one sample with no cursor. Builds that leave the sample remain published. Jenkins runs the builds.

Each response is bounded to 50 builds and 36 KiB. The app commits observations with their
next position. [Source health and controls](https://docs.bijection.com/integrations/native-rest.md#feed-contracts)
report failures and allow recovery.

[Provider API reference](https://www.jenkins.io/doc/book/using/remote-access-api/)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.