Skip to content

Commit

Permalink
ci: refactor build stages
Browse files Browse the repository at this point in the history
  • Loading branch information
mattdibi committed Dec 10, 2024
1 parent 0584e26 commit 7b7bcfe
Showing 1 changed file with 33 additions and 3 deletions.
36 changes: 33 additions & 3 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,46 @@ node {
dir("kura") {
checkout scm
}

dir("kura") {
sh "touch /tmp/isJenkins.txt"
}
}

stage('Build') {
timeout(time: 2, unit: 'HOURS') {
stage('Build target-platform') {
timeout(time: 1, unit: 'HOURS') {
dir("kura") {
withMaven(jdk: 'temurin-jdk17-latest', maven: 'apache-maven-3.9.6') {
sh "touch /tmp/isJenkins.txt"
sh "mvn -f target-platform/pom.xml clean install -Pno-mirror -Pcheck-exists-plugin"
}
}
}
}

stage('Build Kura') {
timeout(time: 2, unit: 'HOURS') {
dir("kura") {
withMaven(jdk: 'temurin-jdk17-latest', maven: 'apache-maven-3.9.6') {
sh "mvn -f kura/pom.xml -Dsurefire.rerunFailingTestsCount=3 clean install -Pcheck-exists-plugin"
}
}
}
}

stage('Build distrib') {
timeout(time: 1, unit: 'HOURS') {
dir("kura") {
withMaven(jdk: 'temurin-jdk17-latest', maven: 'apache-maven-3.9.6') {
sh "mvn -f kura/distrib/pom.xml clean install -DbuildAll"
}
}
}
}

stage('Build examples') {
timeout(time: 1, unit: 'HOURS') {
dir("kura") {
withMaven(jdk: 'temurin-jdk17-latest', maven: 'apache-maven-3.9.6') {
sh "mvn -f kura/examples/pom.xml clean install -Pcheck-exists-plugin"
}
}
Expand Down

0 comments on commit 7b7bcfe

Please sign in to comment.