trim example_count and send as int
Change-Id: Ib2c83fe49530bcaed36def4d569d7f1049723a8a Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/283125 Reviewed-by: Andrea Cirulli <andrea.cirulli@instructure.com> Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com> QA-Review: James Butters <jbutters@instructure.com> Product-Review: James Butters <jbutters@instructure.com>
This commit is contained in:
parent
a2a9e67e99
commit
ae194f6a58
|
@ -243,11 +243,11 @@ pipeline {
|
||||||
|
|
||||||
stage('Splunk Metrics') {
|
stage('Splunk Metrics') {
|
||||||
def exampleCount = sh(script: "docker run -e TEST_QUEUE_HOST -t --rm $REGISTRY_BASE/redis:alpine /bin/sh -c '\
|
def exampleCount = sh(script: "docker run -e TEST_QUEUE_HOST -t --rm $REGISTRY_BASE/redis:alpine /bin/sh -c '\
|
||||||
redis-cli -h $TEST_QUEUE_HOST -p 6379 get ${JOB_NAME}_build${BUILD_NUMBER}_selenium:example_count'", returnStdout: true)
|
redis-cli -h $TEST_QUEUE_HOST -p 6379 get ${JOB_NAME}_build${BUILD_NUMBER}_selenium:example_count'", returnStdout: true).replaceAll('"', '').trim()
|
||||||
|
|
||||||
reportToSplunk('selenium_crystalball_data', [
|
reportToSplunk('selenium_crystalball_data', [
|
||||||
'node_count': rspecqNodeTotal,
|
'node_count': rspecqNodeTotal,
|
||||||
'example_count': exampleCount,
|
'example_count': exampleCount.toInteger(),
|
||||||
'execution_time': (endTime - startTime),
|
'execution_time': (endTime - startTime),
|
||||||
'result': currentBuild.currentResult,
|
'result': currentBuild.currentResult,
|
||||||
'gerrit_revision': "${env.GERRIT_PATCHSET_REVISION}"
|
'gerrit_revision': "${env.GERRIT_PATCHSET_REVISION}"
|
||||||
|
|
Loading…
Reference in New Issue