File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ pipeline {
85
85
docker {
86
86
image ' springci/spring-data-openjdk8-with-redis-6.0:latest'
87
87
label ' data'
88
- args ' -u root - v $HOME/.m2:/tmp/jenkins-home/.m2'
88
+ args ' -v $HOME/.m2:/tmp/jenkins-home/.m2'
89
89
}
90
90
}
91
91
options { timeout(time : 30 , unit : ' MINUTES' ) }
@@ -107,7 +107,7 @@ pipeline {
107
107
docker {
108
108
image ' springci/spring-data-openjdk11-with-redis-6.0:latest'
109
109
label ' data'
110
- args ' -u root - v $HOME/.m2:/tmp/jenkins-home/.m2'
110
+ args ' -v $HOME/.m2:/tmp/jenkins-home/.m2'
111
111
}
112
112
}
113
113
options { timeout(time : 30 , unit : ' MINUTES' ) }
@@ -120,7 +120,7 @@ pipeline {
120
120
docker {
121
121
image ' springci/spring-data-openjdk15-with-redis-6.0:latest'
122
122
label ' data'
123
- args ' -u root - v $HOME/.m2:/tmp/jenkins-home/.m2'
123
+ args ' -v $HOME/.m2:/tmp/jenkins-home/.m2'
124
124
}
125
125
}
126
126
options { timeout(time : 30 , unit : ' MINUTES' ) }
Original file line number Diff line number Diff line change @@ -8,16 +8,16 @@ rm -f work
8
8
cwd=$( pwd)
9
9
10
10
# Launch Redis in proper configuration
11
- pushd / && make -f $cwd /Makefile start && popd
11
+ pushd /tmp && ln -s /work && make -f $cwd /Makefile start && popd
12
12
13
13
# Execute maven test
14
- MAVEN_OPTS=" -Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw clean test -P${PROFILE} -DrunLongTests=${LONG_TESTS:- false} -U -B -Dmaven.repo.local=/tmp/jenkins-home/.m2/spring-data-redis
14
+ MAVEN_OPTS=" -Duser.name=jenkins -Duser.home=/tmp/jenkins-home" ./mvnw clean test -P${PROFILE} -DrunLongTests=${LONG_TESTS:- false} -B
15
15
16
16
# Capture resulting exit code from maven (pass/fail)
17
17
RESULT=$?
18
18
19
19
# Shutdown Redis
20
- pushd / && make -f $cwd /Makefile stop && popd
20
+ pushd /tmp && make -f $cwd /Makefile stop && popd
21
21
22
22
# Return maven results
23
23
exit $RESULT
You can’t perform that action at this time.
0 commit comments