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'}"""
133
133
}
134
134
}
135
135
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
-
155
136
def describePerCommitStage () {
156
137
script {
157
138
currentBuild. displayName = " Per-Commit build"
@@ -462,11 +443,6 @@ pipeline {
462
443
}
463
444
}
464
445
post {
465
- always {
466
- node(' master' ) {
467
- submitCIMetrics(' commit' )
468
- }
469
- }
470
446
aborted {
471
447
notifySlack(' aborted' )
472
448
}
You can’t perform that action at this time.
0 commit comments