File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change @@ -133,25 +133,6 @@ ${status} after ${currentBuild.durationString - ' and counting'}"""
133133 }
134134}
135135
136- def submitCIMetrics (buildType ) {
137- long durationMs = currentBuild. duration
138- long durationSec = durationMs / 1000
139- long nowSec = (currentBuild. startTimeInMillis + durationMs) / 1000
140- def branchNameNoPeriods = env. BRANCH_NAME . replaceAll(' \\ .' , ' _' )
141- def durationMetric = " okr.ci.java.${ env.DRIVER_METRIC_TYPE} .${ buildType} .${ branchNameNoPeriods} ${ durationSec} ${ nowSec} "
142-
143- timeout(time : 1 , unit : ' MINUTES' ) {
144- withCredentials([string(credentialsId : ' lab-grafana-address' , variable : ' LAB_GRAFANA_ADDRESS' ),
145- string(credentialsId : ' lab-grafana-port' , variable : ' LAB_GRAFANA_PORT' )]) {
146- withEnv([" DURATION_METRIC=${ durationMetric} " ]) {
147- sh label : ' Send runtime metrics to labgrafana' , script : ''' #!/bin/bash -le
148- echo "${DURATION_METRIC}" | nc -q 5 ${LAB_GRAFANA_ADDRESS} ${LAB_GRAFANA_PORT}
149- '''
150- }
151- }
152- }
153- }
154-
155136def describePerCommitStage () {
156137 script {
157138 currentBuild. displayName = " Per-Commit build"
@@ -462,11 +443,6 @@ pipeline {
462443 }
463444 }
464445 post {
465- always {
466- node(' master' ) {
467- submitCIMetrics(' commit' )
468- }
469- }
470446 aborted {
471447 notifySlack(' aborted' )
472448 }
You can’t perform that action at this time.
0 commit comments