Jenkins CI/CD Integration
Overview
The Jenkins CI/CD Integration allows Engineering Metrics to connect with Jenkins pipelines and collect CI/CD-related engineering data for analytics, deployment tracking, and DORA metrics reporting. Using this integration, users can:- Connect Jenkins environments
- Authenticate using Jenkins credentials
- Synchronize pipeline execution data
- Configure deployment stage tracking
- Enable CI/CD and DORA analytics within Engineering Metrics
Navigation
To access Jenkins integrations:- Open the Engineering Metrics platform.
- Navigate to Integration → Data Integrations Hub.
- Under CI/CD Integrations, locate Jenkins.
-
Click:
- Connect if no connection exists.
- Manage if an existing connection already exists.
Creating a New Jenkins Connection
Inside the Jenkins Connections page:- Click New Connection.
- The Jenkins connection configuration modal opens.
Connection Configuration Fields
Connection Name
Field: Connection Name Purpose Defines a unique identifier for the Jenkins integration connection.Important: The connection name must be unique and should not duplicate existing connection names.Examples
- Jenkins Production
- Jenkins CI Server
- Engineering Jenkins
Endpoint URL
Field: Endpoint URL Purpose Defines the Jenkins server URL Engineering Metrics will connect to. This may be:- A locally hosted Jenkins instance
- A publicly deployed Jenkins environment
Important: The endpoint must be reachable from the Engineering Metrics environment.
Username
Field: Username Purpose The Jenkins username used for authentication. The account should have sufficient permissions to:- Access Jenkins pipelines
- Read build and deployment information
- Retrieve pipeline execution data
Password
Field: Password Purpose The authentication password or token associated with the Jenkins account.Important: Invalid credentials may cause:
- Connection failures
- Missing pipelines
- Synchronization issues
Proxy Configuration
Field: Proxy Purpose Allows Engineering Metrics to connect through a proxy server when required. Typical Use Cases- Enterprise firewalls
- Restricted network environments
- Internal infrastructure routing
Note: This field is optional for most standard deployments.
Custom Rate Limit
Field: Custom Rate Limit Purpose Allows manual configuration of API request frequency and synchronization throttling. Default Behavior Engineering Metrics automatically manages synchronization rates. When Enabled Users can configure custom limits to:- Prevent excessive API calls
- Reduce Jenkins server load
- Optimize synchronization performance
Testing the Connection
Before saving the connection:- Click Test Connection.
Expected Result
Engineering Metrics validates:- Jenkins server accessibility
- Username and password authentication
- Pipeline access permissions
Saving the Connection
After successful validation:- Click Save Connection.
Result
The Jenkins connection is added to the Connections panel.Managing Existing Connections
Users can:- View configured Jenkins connections
- Search connections
- Select active connections
- Delete existing connections
Delete Connection
A delete icon is available on the extreme right side of the connection entry. Purpose Allows users to remove existing Jenkins connections from Engineering Metrics.Important: Deleting a connection may stop synchronization for associated projects and pipelines.
Data Scope Configuration
After creating the Jenkins connection:- Select the desired Jenkins connection.
- Click Add Data Scope.
Pipeline Selection
The Data Scope page includes:- Search bar for repository or pipeline lookup
- Pipeline and repository selection table
- Repository Name
- Organization
- Last Updated Time
- Search available Jenkins pipelines
- Select required pipelines
- Add them as synchronization scopes
Adding a Data Scope
- Search for the required pipeline or repository.
- Select the desired entry.
- Click Add Scope.
Result
Selected Jenkins pipelines become available for synchronization and analytics.Scope Configuration
After adding a data scope, users can associate Scope Configurations with the selected scope. Scope Configurations define:- Which data entities are collected
- Pipeline deployment stage mappings
- CI/CD analytics configuration
- DORA metrics tracking behavior
Common Data Entities
- CI/CD
- Deployment Data
- Pipeline Execution Data
- Cross Domain Metrics
Deployment Stage Configuration
Inside Scope Configuration settings, users configure:- Pipeline names
- Deployment stage identifiers
- deploy
- production
- release
- DORA metrics
- Deployment analytics
- Pipeline success tracking
Important: Deployment stage naming depends on the Jenkins pipeline configuration used within the organization.
Project Mapping
After configuring data scopes:- Navigate to the Projects section.
- Create or edit a project.
- Select the Jenkins connection.
- Select the required pipeline scopes.
- Configure synchronization behavior.
- Complete setup.
Sync Behavior Configuration
Historical Data Collection
Users can define the historical duration for synchronization. Examples- Last 30 Days
- Last 6 Months
- Last 1 Year
Sync Frequency
Defines how frequently synchronization occurs. Available options include:- Daily
- Weekly
- Monthly
- Custom Intervals
Running Policy
Option: Skip Failed Task Purpose Allows synchronization jobs to continue even if individual subtasks fail. Benefit Prevents full synchronization failure caused by partial pipeline processing issues.DORA Metrics Configuration
To enable DORA metrics:- Navigate to project settings.
- Enable deployment-related settings.
- Save configuration changes.
Important: DORA metrics configuration is specifically required for deployment analytics.
Run Sync Now
Button: Run Sync Now Purpose Immediately synchronizes the latest Jenkins pipeline and deployment data. Behavior Only newly available data is collected during execution.Retransform Data
Button: Retransform Data Purpose Reprocesses previously synchronized data into standardized formats for reporting and analytics.Important: This process does not collect new data. It only transforms existing synchronized data.
Status and Execution History
The Status section displays:- Synchronization history
- Task execution duration
- Task completion status
- Success and failure states
- Execution timestamps
Best Practices
Use Dedicated Jenkins Service Accounts
Recommended Use a dedicated Jenkins integration account instead of personal user credentials. Benefits- Improved security
- Easier credential management
- Reduced operational dependency on individuals
Use Stable Endpoint URLs
Ensure Jenkins endpoint URLs remain stable and accessible. Benefits- Prevents synchronization interruptions
- Reduces connectivity failures
Configure Deployment Stages Properly
Ensure deployment stage names accurately reflect production deployment stages. This is important for:- DORA metrics accuracy
- Deployment analytics quality
Limit Pipeline Scope
Only synchronize required pipelines. Benefits- Faster synchronization
- Reduced system load
- Improved dashboard performance
Troubleshooting
Test Connection Fails
Possible Causes- Invalid credentials
- Incorrect endpoint URL
- Network accessibility issues
- Proxy misconfiguration
- Verify Jenkins credentials
- Confirm endpoint accessibility
- Validate proxy settings
- Retry connection validation
Pipelines Not Visible
Possible Causes- Insufficient Jenkins permissions
- Pipeline access restrictions
- Synchronization delay
- Verify account permissions
- Confirm pipeline visibility
- Retry synchronization
Sync Failures
Possible Causes- Pipeline processing failures
- Invalid deployment stage mappings
- API or server issues
- Validate stage names
- Review synchronization logs
- Retry failed synchronization tasks
Expected Outcome
After successful setup:- Jenkins pipelines are connected to Engineering Metrics
- CI/CD pipeline data becomes available for analytics
- Deployment tracking is enabled
- DORA metrics can be generated
- Pipeline execution trends become visible within dashboards

