Connect your Jenkins jobs
Connect Jenkins jobs to a Digital Employee so that conversations and long-running tasks can access the build records, build logs, and test results for the jobs within the selected scope.
The Jenkins connector uses an environment agent to run the Jenkins command line interface (CLI) that is installed on the bound machine. The Jenkins controller address and access credentials are configured on the machine, so you do not enter credentials when you configure the connector. STAROps does not collect or store these credentials.
Prerequisites
A Digital Employee.
An environment agent bound to a machine whose status is Online. Each environment agent can be bound to one machine.
The machine declares the
bashcapability incapabilities.json. Enabling the built-inbashcapability with the installation command automatically adds this declaration.The Jenkins CLI installed on the machine, with the Jenkins controller address and access credentials configured.
The machine can access the target Jenkins controller.
For information about activating an environment agent, connecting a machine, and declaring capabilities, see Environment agent. For information about using the Jenkins CLI, see the Jenkins official documentation, Jenkins CLI.
The Digital Employee runs commands on the machine as the user who ran the installation command. Queries use the credential identity configured on the machine, not the account used to sign in to the console.
Add a pipeline connector for Jenkins
To add a Jenkins pipeline connector, complete the following steps.
After the connection succeeds, the Digital Employee can run write operations on the target Jenkins, such as triggering builds and canceling jobs. Whether a write operation succeeds depends on the permissions of the credentials on the machine. For details, see Available data and operations.
Go to the Pipeline page
Choose Settings > Connectors > Pipeline.
Select the connector type
Click Add pipeline.
Select Jenkins.
Click Next.
Enter connector information
Connector ID — Uniquely identifies the connector and cannot be changed after the connector is created. The ID must be 1 to 64 characters long, contain only lowercase letters, digits, and hyphens, start with a letter, and end with a letter or digit.
Name — Distinguishes connectors in the list.
Select an environment agent
Select the environment agent that runs Jenkins commands, and confirm that the agent has the bash capability. You cannot continue when the selected environment agent is offline.
This connector does not provide a credential input field. The Jenkins CLI on the machine holds the credentials. Configure the credentials on the machine.
After you select an environment agent, Scope of interest appears. Use it to select the Jenkins jobs that the connector can access. Jobs are shown in a hierarchy, and you can select all jobs or specify individual jobs:
(Recommended) To limit access to only the jobs that the Digital Employee needs, specify individual jobs.
Select all jobs when you have many jobs and the permissions of the credentials on the machine already cover the required scope. Even if you select all jobs, the actual accessible scope remains limited by the permissions of the credentials on the machine.
Jenkins supports organizing jobs in folders. When you select the scope, confirm that it covers the target jobs. Jobs outside the scope do not appear in access results. After you confirm the selection, click Next.
Install the required Skill
Install the Jenkins operation Skill, starops-jenkins-operation, which is required by this connector. Without this Skill, the Digital Employee cannot query the data listed in Available data and operations in conversations or long-running tasks.
Configure data modeling
Basic modeling — After the connector is created, the selected Jenkins jobs and their basic relationships are modeled.
Agentic relationship exploration — Optional. After basic modeling, this option explores cross-source relationships with applications, infrastructure, and observable data. Agentic relationship exploration starts conversations, and these conversations are billed according to the selected model and actual usage.
Check and save
In Check and add, review the Connector ID, environment agent, Scope of interest, installed Skill, and modeling configuration. Then click Save.
After you save, the system checks the connection status. The connector appears in the Pipeline list.
Connection check
The Jenkins connector checks the environment agent runtime and the machine capability. The connector does not check whether the Jenkins CLI credentials are valid.
| Check item | Description |
| Runtime status | Whether the environment agent is online and can run commands on the bound machine. |
| Machine capability | Whether the machine has declared the bash capability. |
A status of Succeeded indicates only that the environment agent and the capability are available. If the credentials on the machine become invalid, the status can still display Succeeded, but conversation queries return authentication or authorization errors.
Verify the result
Verify that the connector was added successfully:
In the Pipeline list, confirm that the connector name, type (Jenkins), status (Succeeded), environment agent, and Scope of interest match the configuration you created.
Click View details and verify the environment agent and the Scope of interest.
In a conversation, ask, "What jobs are on the connected Jenkins? Only report what you actually read." Confirm that the selected jobs are returned.
Available data and operations
After the connection succeeds, conversations and long-running tasks can query the following data:
Jobs — Job lists and details. You can also find associated jobs by source code URL.
Builds — Build records and build details for a specified job.
Build logs — Build logs, including searches for logs by keyword.
Test results — Test result summaries for builds.
Source code information — The source code information configured for jobs, and the source code version and changeset used by an individual build.
Connection and environment — The identity information for the current credentials and the Jenkins controller status.
The connector uses the environment agent to run commands on the bound machine. The capabilities of the connector are limited by the Jenkins CLI on the machine and by the permissions of the credentials that the CLI uses. In addition to the preceding read operations, the connector also supports write operations, such as triggering builds and canceling jobs.
Write operations take effect directly on the target Jenkins, as if you ran the commands on the machine yourself. Whether an operation succeeds depends on the permissions of the credentials on the machine. Before you ask the Digital Employee to perform a write operation, verify the job name, branch, build number, and other parameters one by one, and proceed with caution.
FAQ
The status is Succeeded, but no data can be read in conversations
Confirm the following in order: the environment agent is Online; the Jenkins CLI on the machine has a configured controller address and valid credentials; and the target jobs are within the Scope of interest. In most cases, the credentials on the machine have become invalid. Reconfigure the credentials on the machine and try again.
The identity used for conversation queries is not the expected account
Ask for the current identity information in a conversation to confirm which credentials are in use. If needed, change the credential configuration on the machine.
Only part of the build log is displayed
When a build log is long, the content returned at one time can be truncated. Continue the conversation to request the remaining content, or specify a keyword to search only the relevant log content.
The cause of a build failure cannot be identified
Confirm that the failed build belongs to a selected job and that its log can be read. Add the job name, build number, or time to the question to narrow the scope.