All Apps and Add-ons

Test and Coverage not showing up in Splunk for Jenkins

Carpesimia
New Member

I've recently set up Splunk for Jenkins integration, using both the Splunk for Jenkins plugin in Splunk, as well as the Splunk plug-in in Jenkins. HEC has been configured, and all sorts of nice data is flowing into splunk. All is good.. almost.

It seems that everything is making it over to Splunk except for test information and code coverage. We have cobtura and cucumber reports working on the jenkins side of things (and yes, I've installed the latest versions of the plugins that the Jenkins plugin is compatible with, as well as the latest version of both sides of the plugin), but none of that info makes it into the Splunk Dashboards. All test data is always empty, but everything else in the world seems to be working as designed.

Is there something that needs to be updated/tweaked in order to get the rest of the data in? I'm using the default setup as it came with the plugin.

0 Karma
1 Solution

txiao_splunk
Splunk Employee
Splunk Employee

Please expand the advance section and check customized script section, please replace the script with Sample if it is not the same

View solution in original post

0 Karma

txiao_splunk
Splunk Employee
Splunk Employee

Please expand the advance section and check customized script section, please replace the script with Sample if it is not the same

0 Karma

Carpesimia
New Member

The entries in the sample link are exactly the same as is currently in the "Customize Event Processing Command" textarea, which is what it defaults to. The "Customize Event Processing Script" is a single line text box, and is empty.

Funny, how the "Customize Event Processing Script" is empty, but only allows 1 line. Could the labels be incorrect on these two fields?

0 Karma

Carpesimia
New Member

Looks to be the label. The "Event processing command"'s textarea name (in the html) is named "scriptContent", and the text input for "Event processing Script" is named "_.scriptPath"...

0 Karma

txiao_splunk
Splunk Employee
Splunk Employee

Script for file path, Command for text block, they are mutual exclusive, I think your setup is fine.
is the cucumber reports published form json?

0 Karma

Carpesimia
New Member

Ok, I found the issue. Even though the correct plugin was installed, a different cucumber plugin was being used for the reports to show up in HTML in Jenkins. I added the other cucumber-test-results plugin to one of the jenkins jobs, and the report info showed up in Splunk. Thanks for pushing me in the correct direction!!!

0 Karma

Carpesimia
New Member

I'm not the one who set that up, but I'll look for it and see.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...