@@ -85,29 +85,12 @@ pipeline {
85
85
docker {
86
86
image ' springci/spring-data-openjdk8-with-redis-6.0:latest'
87
87
label ' data'
88
- args ' -v $HOME/.m2:/tmp/jenkins-home/.m2'
88
+ args ' -u root - v $HOME/.m2:/tmp/jenkins-home/.m2'
89
89
}
90
90
}
91
91
options { timeout(time : 30 , unit : ' MINUTES' ) }
92
92
steps {
93
- // Create link to directory with Redis binaries
94
- sh ' ln -sf /work'
95
-
96
- // Launch Redis in proper configuration
97
- sh ' make start'
98
-
99
- // Execute maven test
100
- sh ' MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw clean test -DrunLongTests=true -U -B'
101
-
102
- // Capture resulting exit code from maven (pass/fail)
103
- sh ' RESULT=\$ ?'
104
-
105
- // Shutdown Redis
106
- sh ' make stop'
107
-
108
- // Return maven results
109
- sh ' exit \$ RESULT'
110
-
93
+ sh ' PROFILE=none LONG_TESTS=true ci/test.sh'
111
94
}
112
95
}
113
96
@@ -124,59 +107,25 @@ pipeline {
124
107
docker {
125
108
image ' springci/spring-data-openjdk11-with-redis-6.0:latest'
126
109
label ' data'
127
- args ' -v $HOME/.m2:/tmp/jenkins-home/.m2'
110
+ args ' -u root - v $HOME/.m2:/tmp/jenkins-home/.m2'
128
111
}
129
112
}
130
113
options { timeout(time : 30 , unit : ' MINUTES' ) }
131
114
steps {
132
- // Create link to directory with Redis binaries
133
- sh ' ln -sf /work'
134
-
135
- // Launch Redis in proper configuration
136
- sh ' make start'
137
-
138
- // Execute maven test
139
- sh ' MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pjava11 clean test -U -B'
140
-
141
- // Capture resulting exit code from maven (pass/fail)
142
- sh ' RESULT=\$ ?'
143
-
144
- // Shutdown Redis
145
- sh ' make stop'
146
-
147
- // Return maven results
148
- sh ' exit \$ RESULT'
149
-
115
+ sh ' PROFILE=java11 ci/test.sh'
150
116
}
151
117
}
152
118
stage(" test: baseline (jdk15)" ) {
153
119
agent {
154
120
docker {
155
121
image ' springci/spring-data-openjdk15-with-redis-6.0:latest'
156
122
label ' data'
157
- args ' -v $HOME/.m2:/tmp/jenkins-home/.m2'
123
+ args ' -u root - v $HOME/.m2:/tmp/jenkins-home/.m2'
158
124
}
159
125
}
160
126
options { timeout(time : 30 , unit : ' MINUTES' ) }
161
127
steps {
162
- // Create link to directory with Redis binaries
163
- sh ' ln -sf /work'
164
-
165
- // Launch Redis in proper configuration
166
- sh ' make start'
167
-
168
- // Execute maven test
169
- sh ' MAVEN_OPTS="-Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw -Pjava11 clean test -U -B'
170
-
171
- // Capture resulting exit code from maven (pass/fail)
172
- sh ' RESULT=\$ ?'
173
-
174
- // Shutdown Redis
175
- sh ' make stop'
176
-
177
- // Return maven results
178
- sh ' exit \$ RESULT'
179
-
128
+ sh ' PROFILE=java11 ci/test.sh'
180
129
}
181
130
}
182
131
}
0 commit comments