@@ -311,25 +311,6 @@ ${status} after ${currentBuild.durationString - ' and counting'}"""
311311 }
312312}
313313
314- def submitCIMetrics (buildType ) {
315- long durationMs = currentBuild. duration
316- long durationSec = durationMs / 1000
317- long nowSec = (currentBuild. startTimeInMillis + durationMs) / 1000
318- def branchNameNoPeriods = env. BRANCH_NAME . replaceAll(' \\ .' , ' _' )
319- def durationMetric = " okr.ci.cpp.${ env.DRIVER_METRIC_TYPE} .${ buildType} .${ branchNameNoPeriods} ${ durationSec} ${ nowSec} "
320-
321- timeout(time : 1 , unit : ' MINUTES' ) {
322- withCredentials([string(credentialsId : ' lab-grafana-address' , variable : ' LAB_GRAFANA_ADDRESS' ),
323- string(credentialsId : ' lab-grafana-port' , variable : ' LAB_GRAFANA_PORT' )]) {
324- withEnv([" DURATION_METRIC=${ durationMetric} " ]) {
325- sh label : ' Send runtime metrics to labgrafana' , script : ''' #!/bin/bash -lex
326- echo "${DURATION_METRIC}" | nc -q 5 ${LAB_GRAFANA_ADDRESS} ${LAB_GRAFANA_PORT}
327- '''
328- }
329- }
330- }
331- }
332-
333314def describePerCommitStage () {
334315 script {
335316 currentBuild. displayName = " Per-Commit build of ${ env.BRANCH_NAME} "
@@ -512,11 +493,8 @@ pipeline {
512493 </table>''' )
513494 choice(
514495 name : ' OS_VERSION' ,
515- choices : [' centos/6-64/cpp' ,
516- ' centos/7-64/cpp' ,
496+ choices : [' centos/7-64/cpp' ,
517497 ' centos/8-64/cpp' ,
518- ' ubuntu/trusty64/cpp' ,
519- ' ubuntu/xenial64/cpp' ,
520498 ' ubuntu/bionic64/cpp' ],
521499 description : ''' Operating system to use for scheduled or adhoc builds
522500 <table style="width:100%">
@@ -526,10 +504,6 @@ pipeline {
526504 <th align="left">Choice</th>
527505 <th align="left">Description</th>
528506 </tr>
529- <tr>
530- <td><strong>centos/6-64/cpp</strong></td>
531- <td>CentOS 6 x86_64</td>
532- </tr>
533507 <tr>
534508 <td><strong>centos/7-64/cpp</strong></td>
535509 <td>CentOS 7 x86_64</td>
@@ -538,14 +512,6 @@ pipeline {
538512 <td><strong>centos/8-64/cpp</strong></td>
539513 <td>CentOS 8 x86_64</td>
540514 </tr>
541- <tr>
542- <td><strong>ubuntu/trusty64/cpp</strong></td>
543- <td>Ubuntu 14.04 LTS x86_64</td>
544- </tr>
545- <tr>
546- <td><strong>ubuntu/xenial64/cpp</strong></td>
547- <td>Ubuntu 16.04 LTS x86_64</td>
548- </tr>
549515 <tr>
550516 <td><strong>ubuntu/bionic64/cpp</strong></td>
551517 <td>Ubuntu 18.04 LTS x86_64</td>
@@ -594,11 +560,8 @@ pipeline {
594560 axes {
595561 axis {
596562 name ' OS_VERSION'
597- values ' centos/6-64/cpp' ,
598- ' centos/7-64/cpp' ,
563+ values ' centos/7-64/cpp' ,
599564 ' centos/8-64/cpp' ,
600- ' ubuntu/trusty64/cpp' ,
601- ' ubuntu/xenial64/cpp' ,
602565 ' ubuntu/bionic64/cpp'
603566 }
604567 }
@@ -695,11 +658,6 @@ pipeline {
695658 }
696659 }
697660 post {
698- always {
699- node(' master' ) {
700- submitCIMetrics(' commit' )
701- }
702- }
703661 aborted {
704662 notifySlack(' aborted' )
705663 }
@@ -731,11 +689,8 @@ pipeline {
731689 axes {
732690 axis {
733691 name ' OS_VERSION'
734- values ' centos/6-64/cpp' ,
735- ' centos/7-64/cpp' ,
692+ values ' centos/7-64/cpp' ,
736693 ' centos/8-64/cpp' ,
737- ' ubuntu/trusty64/cpp' ,
738- ' ubuntu/xenial64/cpp' ,
739694 ' ubuntu/bionic64/cpp'
740695 }
741696 }
@@ -786,11 +741,6 @@ pipeline {
786741 }
787742 }
788743 post {
789- always {
790- node(' master' ) {
791- submitCIMetrics(' release' )
792- }
793- }
794744 aborted {
795745 notifySlack(' aborted' )
796746 }
0 commit comments