Skip to content

Commit

Permalink
Merge pull request #9 from lat-lon/main
Browse files Browse the repository at this point in the history
added build step for jdk 11
  • Loading branch information
tfr42 authored Feb 3, 2022
2 parents 78183ae + 4eff2c3 commit cc2a331
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions jenkinsfiles/build/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ pipeline {
agent any
tools {
maven 'maven-3.8'
jdk 'adoptopenjdk-jdk8'
jdk 'adoptopenjdk-jdk11'
}
parameters {
string(defaultValue: "main", description: 'Set git branch', name: 'BRANCH')
Expand All @@ -17,8 +17,11 @@ pipeline {
sh 'mkdir ./mvn_local_repo'
}
}
stage('Build') {
steps{
stage('Build-jdk8') {
tools {
jdk 'adoptopenjdk-jdk8'
}
steps {
sh 'mvn -Djava.awt.headless=true -fae -U -s settings.xml clean install'
}
post {
Expand All @@ -27,6 +30,20 @@ pipeline {
}
success {
archiveArtifacts artifacts: 'deegree-ogcapi-webapp/**/*.war'
}
}
}
stage('Build-jdk11') {
steps {
sh 'mvn -Djava.awt.headless=true -fae -U -s settings.xml clean install'
}
post {
always {
junit '**/target/surefire-reports/*.xml'
}
success {
archiveArtifacts artifacts: 'deegree-ogcapi-webapp/**/*.war'
}
}
}
stage('Deploy') {
Expand Down

0 comments on commit cc2a331

Please sign in to comment.