Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@

pipeline {

agent {
node {
label 'ubuntu'
}
}
agent none

tools {
// ... tell Jenkins what java version, maven version or other tools are required ...
Expand All @@ -43,27 +39,31 @@ pipeline {

stages {
stage('Initialization') {
agent { label 'ubuntu && s390x' }
steps {
echo 'Building branch ' + env.BRANCH_NAME
echo 'Using PATH ' + env.PATH
}
}

stage('Cleanup') {
agent { label 'ubuntu && s390x' }
steps {
echo 'Cleaning up the workspace'
deleteDir()
}
}

stage('Checkout') {
agent { label 'ubuntu && s390x' }
steps {
echo 'Checking out branch ' + env.BRANCH_NAME
checkout scm
}
}

stage('Build JDK 17') {
agent { label 'ubuntu' }
tools {
jdk "jdk_17_latest"
}
Expand All @@ -76,6 +76,7 @@ pipeline {
}

stage('Build JDK 11') {
agent { label 'ubuntu && s390x' }
tools {
jdk "jdk_11_latest"
}
Expand All @@ -88,13 +89,15 @@ pipeline {
}

stage('Verify') {
agent { label 'ubuntu && s390x' }
steps {
echo 'Running apache-rat:check'
sh 'mvn apache-rat:check'
}
}

stage('Tests') {
agent { label 'ubuntu && s390x' }
steps {
echo 'Running tests'
// all tests is very very long (10 hours on Apache Jenkins)
Expand All @@ -110,6 +113,7 @@ pipeline {
}

stage('Deploy') {
agent { label 'ubuntu' }
when {
expression {
env.BRANCH_NAME ==~ /(activemq-5.17.x|activemq-5.16.x|activemq-5.15.x|main)/
Expand Down