import hudson.plugins.robot.RobotBuildAction
import com.splunk.splunkjenkins.utils.LogEventHelper
def build=splunkins.build
def robotAction=build.getAction(RobotBuildAction)
if(robotAction) {
def robotResults=[]
robotAction.result.suites.each { suite ->
suite.caseResults.each { result ->
robotResults << ["name" : result.name, "tags":result.tags, "duration":result.duration,
"passed": result.passed, "description":result.description]
}
}
def metadata = LogEventHelper.getBuildVariables(build)
def robotData=["metadata":metadata, "build_url", build.url, "robot_results":robotResults]
splunkins.send(robotData)
} you can insert the code sample snippet into the plugin config -> Advance ->Customize Event Processing Command it will send an extra event into jenkins index P.S. the tag is not a standard field, the Jenkins app will not show it, you need build your own dashboard
... View more