CloudBees Advisor1.3Minimum Jenkins requirement: 2.19.3ID: cloudbees-jenkins-advisor
CloudBees Jenkins Advisor is a free diagnostics services which distills years of Jenkins expertise into recommendations tailored to your Jenkins environment.
New Lower Jenkins Core Requirement
Now you can use CloudBees Jenkins Advisor if you are running on any Jenkins version 2.19.3 or higher.
This plugin periodically uploads support bundles to a diagnostics service hosted by CloudBees. Once an issue is detected, it advises you on solutions using CloudBees’ expansive knowledge base of common and known issues.
This proactive approach support will help you to fix issues before they impact your software delivery process - increasing your team's uptime, performance and productivity.
- Jenkins core 2.54+ and Java 8
- A CloudBees account → this account will be used by the Jenkins Plugin to connect to the diagnostics service. Your credentials will have to be entered on the plugin page.
- Required Dependencies:
To start, install the CloudBees Jenkins Advisor plugin from the Jenkins update center, sign up for a CloudBees account, and from the "Manage" page, select "Manage CloudBees Jenkins Advisor"
Now add your CloudBees account credentials and test to ensure your instance can connect successfully to the CloudBees Jenkins Advisor hosted service.
Once you have successfully connected your Jenkins instance, you will receive a confirmation email, followed shortly by your first diagnostics report if any issues are detected. Your instance will be re-scanned daily for new issues, as well as after each restart of your master.
Configuring analyzed data
You can configure what contents in your support bundle are sent to CloudBees by selecting the "Advanced Configuration" section, and selecting/unselecting the types of data that should or should no be uploaded.
There are a few command line/configuration file options to control when and how your data uploads to the CloudBees Jenkins Advisor service.
Setting custom upload intervals
To control how often your instance attempts to upload data for analysis, you can set a custom recurrence period. This setting cannot be overridden at runtime, and will require a restart to take effect. The default period is (60 * 24) (24hrs).
Override this setting by using a Java System Property:
Setting custom upload timeout
To control how long your instance waits while attempting to connect and upload data to the Advisor service, you can set a custom advisor upload timeout. This can be changed dynamically and temporary at runtime via Jenkins Script Console:
System.setProperty("com.cloudbees.jenkins.plugins.advisor.client.AdvisorClientConfig.advisorUploadTimeoutMinutes", "120");Settings are lost after restart.
Or permanently by amending Jenkins Java System Properties:
This setting defaults to 60 (minutes)
Troubleshooting and Debugging
CloudBees Jenkins Advisor's tasks are AsyncPeriodicWork, so it stores its logs under /logs/tasks
If you do not receive a welcome email soon after activating your connection, please check this folder errors in your logs. Errors can include:
- Upload size >200 mb - the CloudBees Jenkins Advisor service only supports scanning up to 200 mb of instance data. You can check whether the data upload size is too large by looking in the $JENKINS_HOME/support folder and reviewing the size of the zip files within. If they are too large, use above-mentionedoned data configuration options to opt out of including some file types in your bundle.
1.3 (17 Nov. 2017)
Now supports 2.19.3+!
Connectivity indicator display on configuration page
Additional test coverage
1.2 (5 Sept. 2017)
Fix for "Connect Now" error.
1.1 (25 Aug. 2017)
Change admin notification.
1.0 (22 Aug. 2017)