@@ -311,25 +311,6 @@ ${status} after ${currentBuild.durationString - ' and counting'}"""
311
311
}
312
312
}
313
313
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
-
333
314
def describePerCommitStage () {
334
315
script {
335
316
currentBuild. displayName = " Per-Commit build of ${ env.BRANCH_NAME} "
@@ -512,11 +493,8 @@ pipeline {
512
493
</table>''' )
513
494
choice(
514
495
name : ' OS_VERSION' ,
515
- choices : [' centos/6-64/cpp' ,
516
- ' centos/7-64/cpp' ,
496
+ choices : [' centos/7-64/cpp' ,
517
497
' centos/8-64/cpp' ,
518
- ' ubuntu/trusty64/cpp' ,
519
- ' ubuntu/xenial64/cpp' ,
520
498
' ubuntu/bionic64/cpp' ],
521
499
description : ''' Operating system to use for scheduled or adhoc builds
522
500
<table style="width:100%">
@@ -526,10 +504,6 @@ pipeline {
526
504
<th align="left">Choice</th>
527
505
<th align="left">Description</th>
528
506
</tr>
529
- <tr>
530
- <td><strong>centos/6-64/cpp</strong></td>
531
- <td>CentOS 6 x86_64</td>
532
- </tr>
533
507
<tr>
534
508
<td><strong>centos/7-64/cpp</strong></td>
535
509
<td>CentOS 7 x86_64</td>
@@ -538,14 +512,6 @@ pipeline {
538
512
<td><strong>centos/8-64/cpp</strong></td>
539
513
<td>CentOS 8 x86_64</td>
540
514
</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>
549
515
<tr>
550
516
<td><strong>ubuntu/bionic64/cpp</strong></td>
551
517
<td>Ubuntu 18.04 LTS x86_64</td>
@@ -594,11 +560,8 @@ pipeline {
594
560
axes {
595
561
axis {
596
562
name ' OS_VERSION'
597
- values ' centos/6-64/cpp' ,
598
- ' centos/7-64/cpp' ,
563
+ values ' centos/7-64/cpp' ,
599
564
' centos/8-64/cpp' ,
600
- ' ubuntu/trusty64/cpp' ,
601
- ' ubuntu/xenial64/cpp' ,
602
565
' ubuntu/bionic64/cpp'
603
566
}
604
567
}
@@ -695,11 +658,6 @@ pipeline {
695
658
}
696
659
}
697
660
post {
698
- always {
699
- node(' master' ) {
700
- submitCIMetrics(' commit' )
701
- }
702
- }
703
661
aborted {
704
662
notifySlack(' aborted' )
705
663
}
@@ -731,11 +689,8 @@ pipeline {
731
689
axes {
732
690
axis {
733
691
name ' OS_VERSION'
734
- values ' centos/6-64/cpp' ,
735
- ' centos/7-64/cpp' ,
692
+ values ' centos/7-64/cpp' ,
736
693
' centos/8-64/cpp' ,
737
- ' ubuntu/trusty64/cpp' ,
738
- ' ubuntu/xenial64/cpp' ,
739
694
' ubuntu/bionic64/cpp'
740
695
}
741
696
}
@@ -786,11 +741,6 @@ pipeline {
786
741
}
787
742
}
788
743
post {
789
- always {
790
- node(' master' ) {
791
- submitCIMetrics(' release' )
792
- }
793
- }
794
744
aborted {
795
745
notifySlack(' aborted' )
796
746
}
0 commit comments