Troubleshoot Jenkins data source issues
This document provides solutions to common issues you may encounter when configuring or using the Jenkins data source. For configuration instructions, refer to the Jenkins data source overview.
Both authentication and network problems surface the same Unable to connect to Jenkins message during Save & test; read the detail after Error: to tell them apart, then jump to Authentication errors or Connection errors.
License and setup errors
These errors occur when the Enterprise plugin isn’t licensed, activated, or installed by an administrator.
“Plugin health check failed”
Symptoms:
- Save & test returns a generic
Plugin health check failederror. - The Install button doesn’t appear in the plugin catalog.
Possible causes and solutions:
Version and upgrade guidance
Many Jenkins data source issues are caused by running an outdated plugin version. Before deeper troubleshooting, confirm you’re on the latest version, because upgrading resolves a wide range of problems.
Note
On Grafana Cloud, the Jenkins plugin is managed by Grafana and updates automatically. On self-managed Grafana, you must update Enterprise plugins manually. In other managed environments, such as Azure Managed Grafana, the plugin version is controlled by the platform provider and can lag behind the latest release.
Check and update the plugin version
To check and update the plugin version:
- Navigate to Connections > Plugins and data > Plugins.
- Search for Jenkins and open its page.
- Review the installed version and the latest available version.
- If an update is available and you’re on self-managed Grafana, click Update.
Symptoms of an outdated plugin version
The following symptoms often indicate an outdated plugin version:
- Configuration tab is blank or incomplete. Older versions may not render all settings fields, which can look like settings were lost.
- Connection failures with unhelpful errors. Severely outdated versions can fail to connect at all.
- Intermittent
Plugin unavailableor HTTP 500 errors, especially in managed environments with many panels.
Authentication errors
These errors occur when credentials are invalid, missing, or don’t have the required permissions.
“Unable to connect to Jenkins” with an authentication error
Symptoms:
- Save & test fails with
Unable to connect to Jenkinsfollowed by an authentication or authorization message. - Queries return access-denied messages.
- The project drop-down in the query editor doesn’t load.
Possible causes and solutions:
Connection errors
These errors occur when Grafana can’t reach your Jenkins instance.
“Unable to connect to Jenkins” with a network error
Symptoms:
- The data source test times out or fails with a network error.
- Queries fail intermittently with connection errors.
Solutions:
- Verify the URL is correct and reachable from the Grafana server, including the scheme (
https://) and port. - Verify network connectivity and firewall rules allow outbound access from Grafana to the Jenkins instance.
- Confirm the Remote Access API is enabled on your Jenkins instance.
- For a Jenkins instance on a private network, enable Private Data Source Connect (PDC) and turn on the Enable Secure Socks Proxy toggle in the data source configuration.
When the connection succeeds, Save & test displays Data source is working.
Query errors
These errors occur when running queries against the data source.
“No data” or empty results
Symptoms:
- A query runs without error but returns no data.
- Panels show a No data message.
Possible causes and solutions:
Project drop-down is empty
Symptoms:
- The project selector in a Project Builds query shows no options.
Solutions:
- Verify the data source connection with Save & test.
- Confirm the user has permission to list projects in Jenkins.
- Check that projects exist on the Jenkins instance.
Template variable errors
These errors occur when using template variables with the data source.
Variables return no values
Issues where a Projects query variable returns no options.
Solutions:
- Verify the data source connection is working by testing it in the data source settings.
- Confirm the Projects query type is selected for the variable.
- Verify the user has permission to list projects in Jenkins.
Enable debug logging
To capture detailed error information for troubleshooting:
Set the Grafana log level to
debugin the configuration file:[log] level = debugReview logs in
/var/log/grafana/grafana.log(or your configured log location).Look for
grafana-jenkins-datasourceentries that include request and response details.Reset the log level to
infoafter troubleshooting to avoid excessive log volume.
Get additional help
If you’ve tried the solutions in this document and still encounter issues:
- Check the Grafana community forums for similar issues.
- Review the Jenkins Remote Access API documentation for service-specific guidance.
- Contact Grafana Support if you’re an Enterprise, Cloud Pro, or Cloud Contracted user.
- When reporting issues, include:
- Grafana version and plugin version
- Error messages (redact sensitive information)
- Steps to reproduce
- Relevant configuration (redact credentials)


