diff --git a/Jenkinsfile b/Jenkinsfile
index ef6daab7f..0e94f56ed 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -1,7 +1,7 @@
def p = [:]
node {
- checkout scm
- p = readProperties interpolate: true, file: 'ci/pipeline.properties'
+ checkout scm
+ p = readProperties interpolate: true, file: 'ci/pipeline.properties'
}
pipeline {
@@ -18,7 +18,7 @@ pipeline {
}
stages {
- stage("test: baseline (Java 17)") {
+ stage("test: baseline (main)") {
when {
beforeAgent(true)
anyOf {
@@ -32,17 +32,42 @@ pipeline {
options { timeout(time: 60, unit: 'MINUTES') }
environment {
- DOCKER_HUB = credentials("${p['docker.credentials']}")
ARTIFACTORY = credentials("${p['artifactory.credentials']}")
}
steps {
script {
- docker.withRegistry(p['docker.registry'], p['docker.credentials']) {
- docker.image(p['docker.java.main.image']).inside(p['docker.java.inside.docker']) {
- sh "docker login --username ${DOCKER_HUB_USR} --password ${DOCKER_HUB_PSW}"
- sh "PROFILE=none ci/test.sh"
- sh "ci/clean.sh"
+ docker.image(p['docker.java.main.image']).inside(p['docker.java.inside.docker']) {
+ sh "PROFILE=none ci/test.sh"
+ sh "ci/clean.sh"
+ }
+ }
+ }
+ }
+
+ stage("Test other configurations") {
+ when {
+ beforeAgent(true)
+ allOf {
+ branch(pattern: "main|(\\d\\.\\d\\.x)", comparator: "REGEXP")
+ not { triggeredBy 'UpstreamCause' }
+ }
+ }
+ parallel {
+ stage("test: baseline (next)") {
+ agent {
+ label 'data'
+ }
+ options { timeout(time: 30, unit: 'MINUTES') }
+ environment {
+ ARTIFACTORY = credentials("${p['artifactory.credentials']}")
+ }
+ steps {
+ script {
+ docker.image(p['docker.java.next.image']).inside(p['docker.java.inside.docker']) {
+ sh "PROFILE=none ci/test.sh"
+ sh "ci/clean.sh"
+ }
}
}
}
@@ -68,17 +93,15 @@ pipeline {
steps {
script {
- docker.withRegistry(p['docker.registry'], p['docker.credentials']) {
- docker.image(p['docker.java.main.image']).inside(p['docker.java.inside.basic']) {
- sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml -Pci,artifactory -Dmaven.repo.local=/tmp/jenkins-home/.m2/spring-data-neo4j-non-root ' +
- '-Dartifactory.server=https://repo.spring.io ' +
- "-Dartifactory.username=${ARTIFACTORY_USR} " +
- "-Dartifactory.password=${ARTIFACTORY_PSW} " +
- "-Dartifactory.staging-repository=libs-snapshot-local " +
- "-Dartifactory.build-name=spring-data-neo4j " +
- "-Dartifactory.build-number=${BUILD_NUMBER} " +
- '-Dmaven.test.skip=true clean deploy -U -B'
- }
+ docker.image(p['docker.java.main.image']).inside(p['docker.java.inside.basic']) {
+ sh 'MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml -Pci,artifactory -Dmaven.repo.local=/tmp/jenkins-home/.m2/spring-data-neo4j-non-root ' +
+ '-Dartifactory.server=https://repo.spring.io ' +
+ "-Dartifactory.username=${ARTIFACTORY_USR} " +
+ "-Dartifactory.password=${ARTIFACTORY_PSW} " +
+ "-Dartifactory.staging-repository=libs-snapshot-local " +
+ "-Dartifactory.build-name=spring-data-neo4j " +
+ "-Dartifactory.build-number=${BUILD_NUMBER} " +
+ '-Dmaven.test.skip=true clean deploy -U -B'
}
}
}
diff --git a/pom.xml b/pom.xml
index ba8d35e4e..a4eeca640 100644
--- a/pom.xml
+++ b/pom.xml
@@ -72,7 +72,7 @@
0.23.1
2.1.0
2.1.0
- 1.11.0
+ 1.14.3
3.0.1
${skipTests}
8.40