Upload rspec and selenium events to splunk

test plan:
see them on splunk, build passes

fixes: CCI-383

flag = none

Change-Id: I7aa85ad4b3ec767314007276d0fd094c31210904
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/237760
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
Reviewed-by: Rex Fleischer <rfleischer@instructure.com>
Reviewed-by: James Butters <jbutters@instructure.com>
QA-Review: Jacob Powell <spowell@instructure.com>
Product-Review: Jacob Powell <spowell@instructure.com>
This commit is contained in:
S. Jacob Powell 2020-05-18 14:05:13 -06:00 committed by Jacob Powell
parent 77347a1d6c
commit 505d00c7a5
1 changed files with 2 additions and 0 deletions

View File

@ -53,6 +53,8 @@ def runDataDogForMetricWithExtraTags(name, extraTags, block) {
finally {
def duration = TimeCategory.minus(new Date(), timeStart).toMilliseconds()
hackyMetricSend("jenkins.stage.elapsedTimeDist", duration, ["stage:${name}", extraTags].flatten())
def splunk = load 'build/new-jenkins/groovy/splunk.groovy'
splunk.upload([splunk.eventForStageDuration(name, duration)])
}
}