Jenkins
Trigger Jenkins CI/CD pipelines and automation jobs directly from Harmony workflows
Jenkins is an open-source automation server widely used for CI/CD pipelines and IT automation jobs. Connecting Jenkins to Harmony allows IT workflows to trigger Jenkins jobs as part of ticket resolution - enabling self-service provisioning, infrastructure automation, and deployment workflows without leaving Harmony.
What the Jenkins Integration Enables
Pipeline Triggering
Trigger Jenkins jobs and pipelines directly from Harmony workflows and agent steps
Self-Service Automation
Let employees request IT actions that execute Jenkins jobs automatically
Multi-Instance Support
Connect multiple Jenkins servers for different teams or environments, and target each independently per workflow step
Secure On-Premises Access
Connect on-premises Jenkins servers via a secure Cloudflare tunnel without exposing them to the public internet
Custom Agent Builder Steps
Add a dedicated Trigger Jenkins Job step inside any custom agent workflow
Prerequisites
Jenkins Account: User account with permissions to trigger jobs
Jenkins API Token: Generated from your Jenkins profile (recommended over password)
Network Access: Harmony must be able to reach your Jenkins server
Harmony Account: Active Harmony workspace
Jenkins is typically deployed on-premises. Ensure Harmony has network access to your Jenkins server. If your Jenkins instance is not publicly accessible, use a Cloudflare Tunnel or equivalent to expose it securely. Harmony supports both HTTP and HTTPS origins, including self-signed certificates.
Connect Jenkins to Harmony
Step 1: Generate an API Token in Jenkins
Log in to your Jenkins instance
Click your username in the top-right corner
Select Configure from the dropdown
Scroll to the API Token section
Click Add new Token, enter a name (e.g.
Harmony), and click GenerateCopy the generated token - it will not be shown again
Step 2: Navigate to Integrations
Log in to your Harmony dashboard
Go to Settings > Integrations
Find Jenkins under SaaS Applications and click Connect
Step 3: Enter Credentials
Enter your Jenkins Address - full URL including scheme and port (e.g.
http://10.0.1.100:8080)Enter your Username
Enter your API Token (paste the token generated in Step 1)
Click Connect
Connecting an On-Premises Jenkins Instance via Secure Tunnel
If your Jenkins server is not publicly accessible, you can connect it to Harmony using a secure Cloudflare tunnel - no need to expose it to the public internet.
Go to Settings > Integrations > Jenkins
Follow the step-by-step
cloudflaredinstall instructions shown directly in the setup UIHarmony will provision a unique secure tunnel hostname for the instance
Use the built-in Test connection button to verify the tunnel is working before saving
Harmony supports both HTTP and HTTPS origins for tunnel connections, including self-signed certificates.
Managing Multiple Jenkins Instances
You can connect as many Jenkins instances as your organisation needs from a single Harmony account. Each instance:
Gets its own unique name and secure tunnel hostname
Can be tested independently using the per-instance Test connection button
Is immediately available for selection in any workflow or agent step once connected
When building a workflow, use the integration selector on any Jenkins step to choose which specific instance that step should target. This gives teams running more than one Jenkins environment full control over routing across workflows.
Triggering Jenkins Jobs from Workflows
AI Agent Workflows
You can trigger Jenkins jobs as a step inside your AI agent workflows using the Jenkins integration block. This lets you kick off CI/CD pipelines, builds, or any parameterized Jenkins job automatically as part of a support or operations workflow.
Specify the job path and pass a custom parameters dictionary to the job at trigger time
Use the integration selector to choose which Jenkins instance the step should target
Jenkins errors are surfaced as clear, readable messages within the workflow
Custom Agent Builder
You can add a dedicated Trigger Jenkins Job step to any workflow in the Custom Agent Builder.
Open your agent workflow in the Custom Agent Builder
Add a Trigger Jenkins Job step
Select the target job by Job ID from your connected Jenkins server
Optionally pass parameters to the job at trigger time
Save and test the workflow
Any Jenkins server you have already connected to Harmony is immediately available for selection in the Custom Agent Builder.
What Harmony Uses
From Jenkins:
Available jobs and pipeline definitions
Job execution status and build results
Build logs for workflow context
Use Cases
Last updated
Was this helpful?
