diff --git a/Jenkinsfile b/Jenkinsfile index 470a5ae4..25971a20 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -131,7 +131,11 @@ pipeline { steps { script { docker.withRegistry('', 'hub.docker.com-springbuildmaster') { +<<<<<<< HEAD docker.image(p['docker.java.main.image']).inside(p['docker.java.inside.basic']) { +======= + docker.image('adoptopenjdk/openjdk17:latest').inside('-v $HOME:/tmp/jenkins-home') { +>>>>>>> Upgrade to JDK 17. sh 'rm -Rf `find . -name "BACKUPDEFAULT*"`' sh 'rm -Rf `find . -name "ConfigDiskDir*"`' sh 'rm -Rf `find . -name "locator*" | grep -v "src"`' @@ -151,6 +155,34 @@ pipeline { } } } + stage('Publish documentation') { + when { + branch 'main' + } + agent { + label 'data' + } + options { timeout(time: 20, unit: 'MINUTES') } + + environment { + ARTIFACTORY = credentials('02bd1690-b54f-4c9f-819d-a77cb7a9822c') + } + + steps { + script { + docker.withRegistry('', 'hub.docker.com-springbuildmaster') { + docker.image('adoptopenjdk/openjdk17:latest').inside('-v $HOME:/tmp/jenkins-home') { + sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml -Pci,distribute ' + + '-Dartifactory.server=https://repo.spring.io ' + + "-Dartifactory.username=${ARTIFACTORY_USR} " + + "-Dartifactory.password=${ARTIFACTORY_PSW} " + + "-Dartifactory.distribution-repository=temp-private-local " + + '-Dmaven.test.skip=true clean deploy -U -B' + } + } + } + } + } } post { diff --git a/pom.xml b/pom.xml index 6533bc8e..9939a607 100644 --- a/pom.xml +++ b/pom.xml @@ -42,7 +42,7 @@ spring.data.geode - 1.8 + 17 2.7.7 1.8.0 1.1.1