-
Notifications
You must be signed in to change notification settings - Fork 2
/
nightly_tar.sh
executable file
·45 lines (36 loc) · 1022 Bytes
/
nightly_tar.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
DOCKER_SUFFIX=tar
. ./jenkins/common/default_variables.sh
. ./jenkins/common/setup_docker.sh
. ./jenkins/common/set_max_map_count.sh
. ./jenkins/common/setup_selenium.sh
. ./jenkins/common/evaluate_force.sh
. ./jenkins/common/load_git_submodules.sh
. ./jenkins/common/launch_minio.sh
. ./jenkins/common/register_cleanup_trap.sh
# we need --init since our upgrade leans on zombies not happening:
docker run \
"${DOCKER_ARGS[@]}" \
\
--pid=host \
--init \
\
"${DOCKER_NAMESPACE}${DOCKER_TAG}" \
\
/home/release-test-automation/release_tester/full_download_upgrade.py \
--old-version "${OLD_VERSION}" \
--new-version "${NEW_VERSION}" \
--zip \
\
"${RTA_ARGS[@]}" \
"${@}"
result=$?
# don't need docker stop $DOCKER_TAR_NAME
. ./jenkins/common/cleanup_ownership.sh
. ./jenkins/common/gather_coredumps.sh
if test "${result}" -eq "0"; then
echo "OK"
else
echo "FAILED ${DOCKER_SUFFIX}!"
exit 1
fi