All Apps and Add-ons

No Records Found in Test Results in Splunk App For Jenkins

tanejaparag
New Member

What could be reason, test results not being populated on Splunk App For Jenkins.

  1. Do i need to write specific function in Jenkins Pipeline to post it to Splunk ?
  2. Is Splunk App for Jenkins not configured correctly for Test Results ?

Test Project do create surefire XML reports.

And also in Search Navbar , i dont see any counts for testCase and testsuite
page_num: 1
testsuite: { [-]
duration: 0
errors: 0
failures: 0
passes: 0
skips: 0
testcase: [ [+]
]
tests: 0
time: 0
total: 0
}

alt text

0 Karma

bandit
Motivator

Doing a cursory review of this app, it looks like it uses macros to define the indexes Splunk will search for the Jenkins data. You may need to adjust these values to match the indexes where you've sent the data to. You can adjust the values under settings --> advanced search --> search macros. Look at the leftmost column Name for the following entries.

[jenkins_statistics_index]
definition = index="jenkins_statistics"

[jenkins_console_index]
definition = index="jenkins_console"

[jenkins_index]
definition = index="jenkins"
0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Register to join us !   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to ...

What's new in Splunk Cloud Platform 9.1.2312?

Hi Splunky people! We are excited to share the newest updates in Splunk Cloud Platform 9.1.2312! Analysts can ...

What’s New in Splunk Security Essentials 3.8.0?

Splunk Security Essentials (SSE) is an app that can amplify the power of your existing Splunk Cloud Platform, ...