File tree Expand file tree Collapse file tree 2 files changed +9
-178
lines changed Expand file tree Collapse file tree 2 files changed +9
-178
lines changed Original file line number Diff line number Diff line change 2121
2222pipeline {
2323
24- agent {
25- node {
26- label ' ubuntu'
27- }
28- }
24+ agent none
2925
3026 tools {
3127 // ... tell Jenkins what java version, maven version or other tools are required ...
@@ -43,27 +39,31 @@ pipeline {
4339
4440 stages {
4541 stage(' Initialization' ) {
42+ agent { label ' ubuntu && s390x' }
4643 steps {
4744 echo ' Building branch ' + env. BRANCH_NAME
4845 echo ' Using PATH ' + env. PATH
4946 }
5047 }
5148
5249 stage(' Cleanup' ) {
50+ agent { label ' ubuntu && s390x' }
5351 steps {
5452 echo ' Cleaning up the workspace'
5553 deleteDir()
5654 }
5755 }
5856
5957 stage(' Checkout' ) {
58+ agent { label ' ubuntu && s390x' }
6059 steps {
6160 echo ' Checking out branch ' + env. BRANCH_NAME
6261 checkout scm
6362 }
6463 }
6564
6665 stage(' Build JDK 17' ) {
66+ agent { label ' ubuntu' }
6767 tools {
6868 jdk " jdk_17_latest"
6969 }
@@ -76,6 +76,7 @@ pipeline {
7676 }
7777
7878 stage(' Build JDK 11' ) {
79+ agent { label ' ubuntu && s390x' }
7980 tools {
8081 jdk " jdk_11_latest"
8182 }
@@ -88,13 +89,15 @@ pipeline {
8889 }
8990
9091 stage(' Verify' ) {
92+ agent { label ' ubuntu && s390x' }
9193 steps {
9294 echo ' Running apache-rat:check'
9395 sh ' mvn apache-rat:check'
9496 }
9597 }
9698
9799 stage(' Tests' ) {
100+ agent { label ' ubuntu && s390x' }
98101 steps {
99102 echo ' Running tests'
100103 // all tests is very very long (10 hours on Apache Jenkins)
@@ -110,6 +113,7 @@ pipeline {
110113 }
111114
112115 stage(' Deploy' ) {
116+ agent { label ' ubuntu' }
113117 when {
114118 expression {
115119 env. BRANCH_NAME ==~ / (activemq-5.17.x|activemq-5.16.x|activemq-5.15.x|main)/
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments