Skip to content

Commit a61f4d8

Browse files
committed
Testing change
1 parent 3268552 commit a61f4d8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Jenkinsfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ void lint() {
121121
echo Installing golangci-lint
122122
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.50.0
123123
make lint saveOutput=true path=./bin/
124-
echo helm template lint output: ;cat helm-lint-output.txt ;echo all tests lint output: ;cat test-lint-output.txt
125124
'''
126125

127126
LINT_OUTPUT = sh(returnStdout: true, script: 'echo helm template lint output: ;cat helm-lint-output.txt ;echo all tests lint output: ;cat test-lint-output.txt').trim()
@@ -197,8 +196,7 @@ pipeline {
197196
expression { return params.KUBERNETES_TESTS }
198197
}
199198
steps {
200-
sh """curl -sSL "https://github.com/gotestyourself/gotestsum/releases/download/v0.3.1/gotestsum_0.3.1_linux_amd64.tar.gz" | tar -xz -C /usr/local/bin gotestsum
201-
make test dockerImage=marklogic-centos/marklogic-server-centos:${dockerVersion} saveOutput=true"""
199+
sh "minikube delete --all --purge; make test dockerImage=marklogic-centos/marklogic-server-centos:${dockerVersion} saveOutput=true jenkins=true"
202200
}
203201
}
204202
}
@@ -209,6 +207,7 @@ pipeline {
209207
docker system prune --force --filter "until=720h"
210208
docker volume prune --force
211209
docker image prune --force --all
210+
minikube delete --all --purge
212211
'''
213212
publishTestResults()
214213
}

makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,11 @@ lint:
8181
## Options:
8282
## * [dockerImage] optional. default is marklogicdb/marklogic-db:latest. Example: dockerImage=marklogic-centos/marklogic-server-centos:10-internal
8383
## * [saveOutput] optional. Save the output to a xml file. Example: saveOutput=true
84+
## * [jenkins] optional. Jenkins specific enviroment setting, Example: jenkins=true
85+
8486
.PHONY: e2e-test
8587
e2e-test: prepare
88+
$(if $(saveOutput),export MINIKUBE_HOME=./,)
8689
@echo "=====Installing minikube cluster"
8790
minikube start --driver=docker -n=1
8891

0 commit comments

Comments
 (0)