Introduce additional test stages.
This commit is contained in:
36
Jenkinsfile
vendored
36
Jenkinsfile
vendored
@@ -22,9 +22,43 @@ pipeline {
|
||||
ARTIFACTORY = credentials('02bd1690-b54f-4c9f-819d-a77cb7a9822c')
|
||||
}
|
||||
steps {
|
||||
sh "ci/test.sh"
|
||||
sh "PROFILES=none ci/test.sh"
|
||||
}
|
||||
}
|
||||
|
||||
stage("Test other configurations") {
|
||||
parallel {
|
||||
stage("Test: spring-ws-3.1-snapshots") {
|
||||
agent {
|
||||
docker {
|
||||
image 'adoptopenjdk/openjdk8:latest'
|
||||
args '-v $HOME/.m2:/root/.m2'
|
||||
}
|
||||
}
|
||||
environment {
|
||||
ARTIFACTORY = credentials('02bd1690-b54f-4c9f-819d-a77cb7a9822c')
|
||||
}
|
||||
steps {
|
||||
sh "PROFILES=spring-ws-3.1-snapshots ci/test.sh"
|
||||
}
|
||||
}
|
||||
|
||||
stage("Test: spring-ws-3.2") {
|
||||
agent {
|
||||
docker {
|
||||
image 'adoptopenjdk/openjdk8:latest'
|
||||
args '-v $HOME/.m2:/root/.m2'
|
||||
}
|
||||
}
|
||||
environment {
|
||||
ARTIFACTORY = credentials('02bd1690-b54f-4c9f-819d-a77cb7a9822c')
|
||||
}
|
||||
steps {
|
||||
sh "PROFILES=spring-ws-3.2 ci/test.sh"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
post {
|
||||
|
||||
@@ -3,4 +3,4 @@
|
||||
set -euo pipefail
|
||||
|
||||
MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" \
|
||||
./mvnw -s settings.xml clean dependency:list test -Dsort -B
|
||||
./mvnw -s settings.xml clean dependency:list test -Dsort -B -P${PROFILES}
|
||||
|
||||
19
pom.xml
19
pom.xml
@@ -6,7 +6,7 @@
|
||||
<parent>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-parent</artifactId>
|
||||
<version>2.6.4</version>
|
||||
<version>2.7.4</version>
|
||||
<relativePath/> <!-- lookup parent from repository -->
|
||||
</parent>
|
||||
|
||||
@@ -57,9 +57,20 @@
|
||||
<module>tutorial</module>
|
||||
</modules>
|
||||
|
||||
<properties>
|
||||
<spring-ws.version>3.1.3-SNAPSHOT</spring-ws.version>
|
||||
</properties>
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>spring-ws-3.1-snapshots</id>
|
||||
<properties>
|
||||
<spring-ws.version>3.1.4-SNAPSHOT</spring-ws.version>
|
||||
</properties>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>spring-ws-3.2</id>
|
||||
<properties>
|
||||
<spring-ws.version>3.2.0-SNAPSHOT</spring-ws.version>
|
||||
</properties>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
<dependencies>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user