Browse code

Jenkinsfile: shorten stage names for consistency and to fit Jenkins UI

The Blue Ocean UI truncates names, which makes it possible to distinguish
which Windows stage is RS1 or RS5. This patch shortens those names so that they
fit in the Blue Ocean UI.

Other stages and parameters were renamed as well to better reflect what they're running;

Before | After
-------------------|--------------------------------
janky | amd64
power | ppc64le
power-master | ppc64le integration-cli
windowsRS1 | win-RS1
windowsRS5-process | win-RS5
z | s390x
z-master | x390x integration-cli

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

WIP renames

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>

(cherry picked from commit c18f793f40c8692a06a73a8ed1b14b05091964f9)

Signed-off-by: Andrew Hsu <andrewhsu@docker.com>

Sebastiaan van Stijn authored on 2019/09/10 16:46:19
Showing 1 changed files
... ...
@@ -8,10 +8,10 @@ pipeline {
8 8
         timestamps()
9 9
     }
10 10
     parameters {
11
-        booleanParam(name: 'unit_validate', defaultValue: true, description: 'x86 unit tests and vendor check')
12
-        booleanParam(name: 'janky', defaultValue: true, description: 'x86 Build/Test')
13
-        booleanParam(name: 'z', defaultValue: true, description: 'IBM Z (s390x) Build/Test')
14
-        booleanParam(name: 'powerpc', defaultValue: true, description: 'PowerPC (ppc64le) Build/Test')
11
+        booleanParam(name: 'unit_validate', defaultValue: true, description: 'amd64 (x86_64) unit tests and vendor check')
12
+        booleanParam(name: 'amd64', defaultValue: true, description: 'amd64 (x86_64) Build/Test')
13
+        booleanParam(name: 's390x', defaultValue: true, description: 'IBM Z (s390x) Build/Test')
14
+        booleanParam(name: 'ppc64le', defaultValue: true, description: 'PowerPC (ppc64le) Build/Test')
15 15
         booleanParam(name: 'windowsRS1', defaultValue: true, description: 'Windows 2016 (RS1) Build/Test')
16 16
         booleanParam(name: 'windowsRS5', defaultValue: true, description: 'Windows 2019 (RS5) Build/Test')
17 17
         booleanParam(name: 'skip_dco', defaultValue: false, description: 'Skip the DCO check')
... ...
@@ -219,10 +219,10 @@ pipeline {
219 219
                         }
220 220
                     }
221 221
                 }
222
-                stage('janky') {
222
+                stage('amd64') {
223 223
                     when {
224 224
                         beforeAgent true
225
-                        expression { params.janky }
225
+                        expression { params.amd64 }
226 226
                     }
227 227
                     agent { label 'amd64 && ubuntu-1804 && overlay2' }
228 228
 
... ...
@@ -325,7 +325,7 @@ pipeline {
325 325
 
326 326
                             catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE', message: 'Failed to create bundles.tar.gz') {
327 327
                                 sh '''
328
-                                bundleName=janky
328
+                                bundleName=amd64
329 329
                                 echo "Creating ${bundleName}-bundles.tar.gz"
330 330
                                 # exclude overlay2 directories
331 331
                                 find bundles -path '*/root/*overlay2' -prune -o -type f \\( -name '*.log' -o -name '*.prof' \\) -print | xargs tar -czf ${bundleName}-bundles.tar.gz
... ...
@@ -340,10 +340,10 @@ pipeline {
340 340
                         }
341 341
                     }
342 342
                 }
343
-                stage('z') {
343
+                stage('s390x') {
344 344
                     when {
345 345
                         beforeAgent true
346
-                        expression { params.z }
346
+                        expression { params.s390x }
347 347
                     }
348 348
                     agent { label 's390x-ubuntu-1604' }
349 349
                     // s390x machines run on Docker 18.06, and buildkit has some bugs on that version
... ...
@@ -437,11 +437,11 @@ pipeline {
437 437
                         }
438 438
                     }
439 439
                 }
440
-                stage('z-master') {
440
+                stage('s390x integration-cli') {
441 441
                     when {
442 442
                         beforeAgent true
443 443
                         branch 'master'
444
-                        expression { params.z }
444
+                        expression { params.s390x }
445 445
                     }
446 446
                     agent { label 's390x-ubuntu-1604' }
447 447
                     // s390x machines run on Docker 18.06, and buildkit has some bugs on that version
... ...
@@ -515,13 +515,13 @@ pipeline {
515 515
                         }
516 516
                     }
517 517
                 }
518
-                stage('powerpc') {
518
+                stage('ppc64le') {
519 519
                     when {
520 520
                         beforeAgent true
521
-                        expression { params.powerpc }
521
+                        expression { params.ppc64le }
522 522
                     }
523 523
                     agent { label 'ppc64le-ubuntu-1604' }
524
-                    // power machines run on Docker 18.06, and buildkit has some bugs on that version
524
+                    // ppc64le machines run on Docker 18.06, and buildkit has some bugs on that version
525 525
                     environment { DOCKER_BUILDKIT = '0' }
526 526
 
527 527
                     stages {
... ...
@@ -595,7 +595,7 @@ pipeline {
595 595
 
596 596
                             catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE', message: 'Failed to create bundles.tar.gz') {
597 597
                                 sh '''
598
-                                bundleName=powerpc-integration
598
+                                bundleName=ppc64le-integration
599 599
                                 echo "Creating ${bundleName}-bundles.tar.gz"
600 600
                                 # exclude overlay2 directories
601 601
                                 find bundles -path '*/root/*overlay2' -prune -o -type f \\( -name '*.log' -o -name '*.prof' \\) -print | xargs tar -czf ${bundleName}-bundles.tar.gz
... ...
@@ -610,14 +610,14 @@ pipeline {
610 610
                         }
611 611
                     }
612 612
                 }
613
-                stage('powerpc-master') {
613
+                stage('ppc64le integration-cli') {
614 614
                     when {
615 615
                         beforeAgent true
616 616
                         branch 'master'
617
-                        expression { params.powerpc }
617
+                        expression { params.ppc64le }
618 618
                     }
619 619
                     agent { label 'ppc64le-ubuntu-1604' }
620
-                    // power machines run on Docker 18.06, and buildkit has some bugs on that version
620
+                    // ppc64le machines run on Docker 18.06, and buildkit has some bugs on that version
621 621
                     environment { DOCKER_BUILDKIT = '0' }
622 622
 
623 623
                     stages {
... ...
@@ -671,7 +671,7 @@ pipeline {
671 671
 
672 672
                             catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE', message: 'Failed to create bundles.tar.gz') {
673 673
                                 sh '''
674
-                                bundleName=powerpc-integration-cli
674
+                                bundleName=ppc64le-integration-cli
675 675
                                 echo "Creating ${bundleName}-bundles.tar.gz"
676 676
                                 # exclude overlay2 directories
677 677
                                 find bundles -path '*/root/*overlay2' -prune -o -type f \\( -name '*.log' -o -name '*.prof' \\) -print | xargs tar -czf ${bundleName}-bundles.tar.gz
... ...
@@ -686,7 +686,7 @@ pipeline {
686 686
                         }
687 687
                     }
688 688
                 }
689
-                stage('windowsRS1') {
689
+                stage('win-RS1') {
690 690
                     when {
691 691
                         beforeAgent true
692 692
                         expression { params.windowsRS1 }
... ...
@@ -727,7 +727,7 @@ pipeline {
727 727
                         }
728 728
                     }
729 729
                 }
730
-                stage('windowsRS5-process') {
730
+                stage('win-RS5') {
731 731
                     when {
732 732
                         beforeAgent true
733 733
                         expression { params.windowsRS5 }