Skip to content

Commit a9c4633

Browse files
committed
Added s390x node in Jenkinsfile
1 parent 46b2ef1 commit a9c4633

File tree

2 files changed

+9
-178
lines changed

2 files changed

+9
-178
lines changed

Jenkinsfile

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,7 @@
2121

2222
pipeline {
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)/

Jenkinsfile.s390x

Lines changed: 0 additions & 173 deletions
This file was deleted.

0 commit comments

Comments
 (0)