Skip to content

Commit

Permalink
#235 - Update jenkinsfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
dstenger committed Dec 20, 2024
1 parent b46343f commit 2e6cd0a
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
6 changes: 3 additions & 3 deletions jenkinsfiles/build/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
pipeline {
agent any
tools {
maven 'mvn'
jdk 'JDK 8'
maven 'mvn396'
jdk 'temurin-jdk17'
}
stages {
stage('Preparation') {
Expand All @@ -25,4 +25,4 @@ pipeline {
}
}
}
}
}
19 changes: 10 additions & 9 deletions jenkinsfiles/release/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,34 +1,35 @@
pipeline {
agent any
tools {
maven 'mvn'
jdk 'JDK 8'
maven 'mvn396'
jdk 'temurin-jdk17'
}
stages {
stage('Preparation') {
stage('Initialize') {
steps{
deleteDir()
sh 'git clone [email protected]:opengeospatial/ets-ogcapi-features10.git .'
sh '''
echo "PATH = ${PATH}"
echo "M2_HOME = ${M2_HOME}"
'''
sh 'mvn --version'
}
}
stage('Release') {
steps{
sh 'mvn --version'
sh 'mvn -Dresume=false -DdryRun=true release:prepare -Psign-artifacts-with-ogc,integration-tests,docker -DreleaseVersion=${releaseVersion} -DdevelopmentVersion=${developmentVersion}'
sh 'mvn -Dresume=false release:prepare release:perform -Psign-artifacts-with-ogc,integration-tests,docker -DreleaseVersion=${releaseVersion} -DdevelopmentVersion=${developmentVersion}'
}
}
stage('Publication of site') {
steps{
sh 'mvn --version'
sh 'git checkout ${releaseVersion}'
sh 'mvn clean install site site:stage scm-publish:publish-scm'
}
}
stage('Results') {
steps{
junit '**/target/surefire-reports/TEST-*.xml'
archive 'target/*'
archiveArtifacts artifacts: 'target/*', allowEmptyArchive: true
deleteDir()
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions jenkinsfiles/test/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
pipeline {
agent any
tools {
maven 'mvn'
jdk 'JDK 8'
maven 'mvn396'
jdk 'temurin-jdk17'
}
stages {
stage('Preparation') {
Expand Down

0 comments on commit 2e6cd0a

Please sign in to comment.