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!

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...

Introducing the 2024 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...