diff options
author | pmikus <pmikus@cisco.com> | 2021-07-09 17:41:54 +0000 |
---|---|---|
committer | Peter Mikus <pmikus@cisco.com> | 2021-08-13 06:54:34 +0000 |
commit | 81c2c13036d6116f404c3708552a6986a0577c68 (patch) | |
tree | 9be3316bbae27760b176f214b734ffb430b589b5 /resources | |
parent | 8280c57bb83c251b218fc1a5830274c89ff4603b (diff) |
CI-MAN: Unify backups
+ tox must follow the $WORKSPACE/archives rule
Signed-off-by: pmikus <pmikus@cisco.com>
Change-Id: I717afded894c3a5468bbf5013b242be5e1a9cb6e
(cherry picked from commit 88483ff0a6b4b5ff5b0390d8ff2adeb9a857c1c3)
Diffstat (limited to 'resources')
-rwxr-xr-x | resources/libraries/bash/entry/tox.sh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/resources/libraries/bash/entry/tox.sh b/resources/libraries/bash/entry/tox.sh index c6ceb6503e..9edd6607d6 100755 --- a/resources/libraries/bash/entry/tox.sh +++ b/resources/libraries/bash/entry/tox.sh @@ -31,3 +31,9 @@ cd "${CSIT_DIR}" || die activate_virtualenv "${CSIT_DIR}" "${CSIT_DIR}/tox-requirements.txt" || die # Verbosity is increased so console output shows any unwanted downloads. tox -vv # Return code is turned into Jenkins job vote. +TOX_EXIT_STATUS="$?" + +mkdir -p "${CSIT_DIR}/archives" || die +mv *.log "${CSIT_DIR}/archives" || die + +exit "${TOX_EXIT_STATUS}"
\ No newline at end of file |