Add jenkins logs regardless of exit status
parent
ea31492976
commit
2c4d40e146
|
@ -29,10 +29,15 @@ export GOPATH=/var/lib/jenkins/go
|
||||||
|
|
||||||
docker kill $(docker ps -q) || true
|
docker kill $(docker ps -q) || true
|
||||||
docker rm $(docker ps -aq) || true
|
docker rm $(docker ps -aq) || true
|
||||||
|
set +e
|
||||||
make -j 16 all
|
make -j 16 all
|
||||||
|
set -e
|
||||||
|
|
||||||
gsutil cp gs://minikube-builds/logs/index.html gs://minikube-builds/logs/${ghprbPullId}/index.html
|
gsutil cp gs://minikube-builds/logs/index.html gs://minikube-builds/logs/${ghprbPullId}/index.html
|
||||||
|
|
||||||
|
# Exit if the cross build failed.
|
||||||
|
if [ "$?"-ne 0]; then echo "cross build failed"; exit 1; fi
|
||||||
|
|
||||||
# If there are ISO changes, build and upload the ISO
|
# If there are ISO changes, build and upload the ISO
|
||||||
# then set the default to the newly built ISO for testing
|
# then set the default to the newly built ISO for testing
|
||||||
if out="$(git diff ${ghprbActualCommit} --name-only $(git merge-base origin/master ${ghprbActualCommit}) | grep deploy/iso/minikube)" &> /dev/null; then
|
if out="$(git diff ${ghprbActualCommit} --name-only $(git merge-base origin/master ${ghprbActualCommit}) | grep deploy/iso/minikube)" &> /dev/null; then
|
||||||
|
|
Loading…
Reference in New Issue