File tree Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Expand file tree Collapse file tree 2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -136,12 +136,10 @@ void publishTestResults() {
136
136
}
137
137
138
138
void pullImage () {
139
- dockerVersion = " ${ ML_VERSION} -${ timeStamp} -centos-1.0.0"
140
-
141
139
withCredentials([usernamePassword(credentialsId : ' 8c2e0b38-9e97-4953-aa60-f2851bb70cc8' , passwordVariable : ' docker_password' , usernameVariable : ' docker_user' )]) {
142
140
sh """
143
141
echo "\$ docker_password" | docker login --username \$ docker_user --password-stdin ${ dockerRegistry}
144
- docker pull ml-docker-dev.marklogic.com/"marklogic"/marklogic-server-centos :${ dockerVersion}
142
+ docker pull ${ dockerRepository } :${ dockerVersion}
145
143
"""
146
144
}
147
145
}
@@ -163,7 +161,9 @@ pipeline {
163
161
}
164
162
environment {
165
163
timeStamp = sh(returnStdout : true , script : ' date +%Y%m%d' ). trim()
166
- dockerRegistry = ' https://ml-docker-dev.marklogic.com'
164
+ dockerRegistry = ' ml-docker-dev.marklogic.com'
165
+ dockerRepository = " ${ dockerRegistry} /marklogic/marklogic-server-centos"
166
+ dockerVersion = " ${ ML_VERSION} -${ timeStamp} -centos-1.0.0"
167
167
}
168
168
169
169
parameters {
@@ -196,7 +196,10 @@ pipeline {
196
196
expression { return params. KUBERNETES_TESTS }
197
197
}
198
198
steps {
199
- sh " minikube delete --all --purge; make test dockerImage=marklogic-centos/marklogic-server-centos:${ dockerVersion} saveOutput=true jenkins=true"
199
+ sh """
200
+ export MINIKUBE_HOME=/space;
201
+ make test dockerImage=${ dockerRepository} :${ dockerVersion} saveOutput=true
202
+ """
200
203
}
201
204
}
202
205
}
Original file line number Diff line number Diff line change @@ -85,15 +85,15 @@ lint:
85
85
86
86
.PHONY : e2e-test
87
87
e2e-test : prepare
88
- $(if $(jenkins ) ,export MINIKUBE_HOME=/space,)
89
88
@echo " =====Installing minikube cluster"
90
- minikube start
89
+ minikube start --driver=docker -n=1
91
90
92
91
@echo "=====Loading marklogc image $(dockerImage) to minikube cluster"
93
92
minikube image load $(dockerImage)
94
93
95
94
@echo "=====Running e2e tests"
96
- cd test; $(if $(saveOutput),gotestsum --junitfile test_results/e2e-tests.xml ./e2e/... -count=1, go test -v -count=1 ./test/e2e/...)
95
+ cd test
96
+ $(if $(saveOutput),gotestsum --junitfile test_results/e2e-tests.xml ./e2e/... -count=1, go test -v -count=1 ./e2e/...)
97
97
98
98
@echo "=====Delete minikube cluster"
99
99
minikube delete
You can’t perform that action at this time.
0 commit comments