Jenkins
Connect to a Jenkins controller to read jobs and builds and trigger pipelines with a username and API token.
Connectors
Choose the connector that matches your authentication method. The options below use the names shown in StackAI.
Jenkins
Credentials
Jenkins
Connect to a Jenkins controller with a username and API token to read jobs and builds and trigger pipelines.
Set up in Jenkins
Sign in to your Jenkins controller in a browser.
Under API Token, click 'Add new Token', give it a name, and click Generate.
Copy the generated token immediately; it is shown only once.
Set up in StackAI
Open Settings → Connections, add a connection, and select Jenkins.
Enter the credentials and connection details in the fields below.
Save the connection and check its connection status. Select this saved connection when configuring an action or feature that uses it.
Connection fields
Jenkins URL
Yes
Base URL of your Jenkins controller, e.g. https://jenkins.example.com. Must be reachable from the public internet.
Username
Yes
The Jenkins username that owns the API token.
API Token
Yes
A Jenkins API token (not your password). Create one at $JENKINS_URL/me/configure > API Token > Add new Token. Provider instructions.
Provider documentation: Setup reference.
Verify the connection
Check that the connection is healthy. Then run a read operation against a resource the connected account can access. A successful connection check confirms authentication; it does not guarantee permission for every action.
If access is denied, check the credential or OAuth permissions, the selected account or environment, and access to the specific resource. Update expired credentials or reconnect after permissions change.
Use an action
Add the required Jenkins action to the workflow.
Select a connection when the action requests one.
Complete the required fields. Use the reference picker when a value comes from another workflow step.
Run the workflow and inspect the action’s output. Check the result before using it in a later step.
Actions
List Jobs
List the jobs on your Jenkins controller.
Inputs
No input fields are required in this catalog entry.
Outputs
Jobs
array
The jobs on the Jenkins controller.
Count
integer
The number of jobs returned.
Get Build Status
Get the status and result of a Jenkins build.
Inputs
Job Name
string
Yes
The Jenkins job name.
Build
string
No
A build number, or lastBuild / lastSuccessfulBuild / lastCompletedBuild. Default: lastBuild.
Outputs
Build Number
integer
The build number.
Result
string
SUCCESS, FAILURE, UNSTABLE, ABORTED, IN_PROGRESS, or UNKNOWN.
Building
boolean
Whether the build is still running.
Duration (ms)
integer
Build duration in milliseconds (0 if not finished).
Build URL
string
The build's URL.
Get Console Output
Get the console log of a Jenkins build.
Inputs
Job Name
string
Yes
The Jenkins job name.
Build
string
No
A build number, or lastBuild / lastSuccessfulBuild / lastCompletedBuild. Default: lastBuild.
Outputs
Console Output
string
The full console log of the build.
Trigger Build
Trigger a build of a Jenkins job.
Inputs
Job Name
string
Yes
The Jenkins job to build.
Outputs
Queue Item URL
string
The URL of the queued build item.
Queue Item ID
integer
The numeric queue item id (0 if unknown).
Trigger Parameterized Build
Trigger a build of a Jenkins job with parameters.
Inputs
Job Name
string
Yes
The Jenkins job to build.
Parameters
object
No
Build parameters as name/value pairs.
Outputs
Queue Item URL
string
The URL of the queued build item.
Queue Item ID
integer
The numeric queue item id (0 if unknown).
Triggers
A trigger starts a workflow when its configured event occurs. Configure the event and filters before enabling the trigger.
On Build Completed
Fires when a build of the configured Jenkins job finishes.
Configuration
Job Name
string
Yes
The Jenkins job to watch for completed builds.
Event inputs
Job Name
string
Yes
The job that produced the build.
Build Number
integer
Yes
The completed build number.
Result
string
Yes
SUCCESS, FAILURE, UNSTABLE, or ABORTED.
Build URL
string
No
The build's URL. Default: .
Duration (ms)
integer
No
Build duration in milliseconds. Default: 0.
Outputs
Job Name
string
The job that produced the build.
Build Number
integer
The completed build number.
Result
string
SUCCESS, FAILURE, UNSTABLE, or ABORTED.
Build URL
string
The build's URL.
Duration (ms)
integer
Build duration in milliseconds.
Important behavior
Actions that create, update, send, or delete data can change the connected service. Review their inputs before running them. A retry can repeat an operation; consider this when configuring retries for actions that change data.
The catalog lists the fields and capabilities available in the supplied provider definition. Availability can also depend on your deployment and organization’s Feature Access settings.
Last updated
Was this helpful?

