Jenkins connector

Connect Jenkins to Okou

The Jenkins connector lets Okou read your self-hosted Jenkins controller: jobs, builds, console output, agents, and the build queue. Connect with your Jenkins username, an API token, and your controller's public HTTPS address. Okou can explain why a build failed, report on job health, and start builds when you allow it.

Category
Engineering
Connection
Username and API Token
Access
Read and write
Setup
No code required

What is Jenkins?

Jenkins is an open source automation server. Engineering teams run it on their own servers to build, test, and deploy software, often as the continuous integration and delivery hub for a project, with hundreds of plugins for the tools they use.

With Jenkins connected, Okou can find failing jobs, read a build's console log, and explain what went wrong in plain language, so people outside the build team can follow release status too. Starting builds and changing jobs use separate permissions that are off by default.

What Okou can do with Jenkins

Find and read

  • List jobs and read each job's status, recent builds, and configuration.
  • Read a build's result, duration, and console output, including the last build or the last successful one.
  • Check the build queue and the status of connected agents.

Manage

  • Start a build, with parameters when the job needs them.
  • Create, update, disable, enable, or rename jobs, with a separate permission.

Things to ask Okou to do in Jenkins

Describe the outcome in plain language. Okou finds what it needs and does the work in Jenkins.

  • “Why did the last build of checkout-service fail? Read the console output and explain it in plain language.”

    A short explanation of the failing step, the error lines behind it, and the build number.

  • “List every Jenkins job whose last build failed, and when each one last passed.”

    A job health list with the last failed and last successful build for each job.

  • “Is anything stuck in the Jenkins queue right now, and are any agents offline?”

    A queue and agent status check that names the waiting items and any offline agents.

  • “Start the nightly-docs job with BRANCH set to release-2.4.”

    A queued build with the parameters you gave, once build triggering is allowed.

  • “Check last night's builds, create a Jira issue for each failed job, and post the list in #releases.”

    One Jira issue per failed job with the failing step, and a Slack summary with the links. Jira and Slack must be connected too.

Jenkins works well with

Connect more than one tool and Okou can carry the work across them.

How to connect Jenkins to Okou

  1. 1

    Find Jenkins in Connectors

    In your Okou workspace, open Connectors, search for Jenkins, and select Connect. In Jenkins, click your username, open Security, and add a new API token. Enter your Jenkins username, the token, and your controller's public HTTPS host in the connection form, not in the chat. Jenkins shows a new token only once.

    Okou Connectors search results for Jenkins
  2. 2

    Describe the work

    Ask about a failing build, job health, or the queue in plain language. Name the job and build when they matter. For a daily report, save the task as a workflow and add a scheduled automation.

    An unsent Jenkins request in the Okou chat composer
  3. 3

    Or connect when Okou asks

    If a task needs Jenkins before it is connected, Okou can show a Connect card in the chat. Use the card to add your Jenkins details, then continue the task. If starting a build or changing a job needs permission, Okou asks in the chat before doing it.

    Okou reply with a Connect card for Jenkins

Permissions and security

  • The API token acts as your Jenkins user. Jenkins does not offer narrower token scopes, so Okou can do what that user is allowed to do within this connector's actions. Consider a dedicated Jenkins user with only the access you need.
  • Reading jobs, configuration, builds, console output, agents, and the queue is allowed by default. Starting builds and managing jobs each need their own permission. Deleting a job also removes its build history.
  • Controller administration, such as restart or shutdown, and jobs nested inside folders are outside this connector.
  • Your API token is stored on the platform and added to Jenkins requests at the network boundary. It is not exposed to the agent.
  • Each teammate connects their own Jenkins user. Sharing a workflow does not share your connection.
  • Disconnect Jenkins from Connectors to remove it from future Okou runs. Revoke the API token itself under Security in Jenkins.
How permissions work

Jenkins connector questions

What can Okou do with Jenkins?
Okou can list jobs, read job configuration, builds, console output, agents, and the build queue, and explain the results in plain language. With the matching permissions, it can start builds, including parameterized builds, and create, update, disable, enable, or rename jobs.
How do I connect Jenkins to Okou?
Create an API token in Jenkins from your user's Security page. Then open Connectors in Okou, search for Jenkins, select Connect, and enter your username, the token, and your controller's HTTPS host. Do not paste the token into a chat.
Can Okou start builds or change jobs on its own?
Not without permission. Reading is allowed by default, but starting builds and managing jobs are separate permissions that are off by default. A build does real work on your controller, so allow it only for the jobs and times you intend.
Does it work with jobs inside folders?
No. The connector supports top-level jobs. Jobs nested in folders use a deeper path that is outside this connector.
Does my Jenkins controller need to be reachable from the internet?
Yes. The connector expects a public HTTPS host for your controller, with the Jenkins API served at the host root.
Can Okou send a daily build report?
Yes. Save the report as a workflow and add a scheduled automation, for example every weekday morning. Connect Slack as well if you want it posted to a channel.

Put Jenkins to work with Okou

Connect Jenkins, describe the outcome, and review the result.