Skip to content

Commit 8ce9497

Browse files
committed
Removing submission of CI metrics temporarily after AWS conversion
1 parent d4a52aa commit 8ce9497

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

Jenkinsfile

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff 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-
155136
def 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
}

0 commit comments

Comments
 (0)