From the course: Intermediate Jenkins: Automate, Integrate, and Secure CI/CD Workflows at Scale
Unlock this course with a free trial
Join today to access over 25,200 courses taught by industry experts.
Use AI to analyze errors - Jenkins Tutorial
From the course: Intermediate Jenkins: Automate, Integrate, and Secure CI/CD Workflows at Scale
Use AI to analyze errors
When you're working with unfamiliar codebases, cryptic or confusing error messages can be especially hard to debug. Fortunately, we can use AI to help explain root causes and provide tips for fixing the code. To help analyze errors, I've installed the ExplainError plugin. Could there be a better name for this plugin? Basically, this plugin uses AI to make sense of the errors generated by Jenkins jobs. Once the plugin is installed, it needs to be enabled and configured. For that, go to the Manage Jenkins page. On the Manage Jenkins page, you'll want to select System, and then find the Explain Error Plugin Configuration. Make sure the plugin is enabled, and then select a provider. At the time that I'm recording this, the plugin supports Google, Olama, and OpenAI. Select the provider of your choice, and then enter the API key. Take a look at the exercise files for steps on generating a key. Once your key is in place, enter the name of the model you want to use from the provider you…