File tree 1 file changed +31
-1
lines changed
1 file changed +31
-1
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ pipeline {
18
18
}
19
19
20
20
stages {
21
- stage(" test: baseline (Java 17 )" ) {
21
+ stage(" test: baseline (main )" ) {
22
22
when {
23
23
beforeAgent(true )
24
24
anyOf {
@@ -42,6 +42,36 @@ pipeline {
42
42
}
43
43
}
44
44
45
+ stage(" Test other configurations" ) {
46
+ when {
47
+ beforeAgent(true )
48
+ allOf {
49
+ branch(pattern : " main|(\\ d\\ .\\ d\\ .x)" , comparator : " REGEXP" )
50
+ not { triggeredBy ' UpstreamCause' }
51
+ }
52
+ }
53
+ parallel {
54
+ stage(" test: baseline (next)" ) {
55
+ agent {
56
+ label ' data'
57
+ }
58
+ options { timeout(time : 30 , unit : ' MINUTES' ) }
59
+ environment {
60
+ ARTIFACTORY = credentials(" ${ p['artifactory.credentials']} " )
61
+ }
62
+ steps {
63
+ script {
64
+ docker. withRegistry(p[' docker.registry' ], p[' docker.credentials' ]) {
65
+ docker. image(p[' docker.java.next.image' ]). inside(p[' docker.java.inside.basic' ]) {
66
+ sh ' MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -s settings.xml clean dependency:list verify -Dsort -U -B'
67
+ }
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
73
+ }
74
+
45
75
stage(' Release to artifactory' ) {
46
76
when {
47
77
beforeAgent(true )
You can’t perform that action at this time.
0 commit comments