Clean up artifacts variables in hack scripts

This commit is contained in:
Christoph Blecker
2018-12-19 15:17:13 -08:00
parent f2d7eed675
commit b19fb0a77e
8 changed files with 30 additions and 18 deletions

View File

@@ -94,9 +94,9 @@ pushd "${KUBE_ROOT}" > /dev/null 2>&1
echo "(The above output can be saved as godepdiff.patch if you're not running this locally)" >&2
echo "(The patch file should also be exported as a build artifact if run through CI)" >&2
KEEP_TMP=true
if [[ -f godepdiff.patch && -d "${ARTIFACTS_DIR:-}" ]]; then
if [[ -f godepdiff.patch && -d "${ARTIFACTS:-}" ]]; then
echo "Copying patch to artifacts.."
cp godepdiff.patch "${ARTIFACTS_DIR:-}/"
cp godepdiff.patch "${ARTIFACTS:-}/"
fi
ret=1
fi
@@ -111,9 +111,9 @@ pushd "${KUBE_ROOT}" > /dev/null 2>&1
echo "(The above output can be saved as godepdiff.patch if you're not running this locally)" >&2
echo "(The patch file should also be exported as a build artifact if run through CI)" >&2
KEEP_TMP=true
if [[ -f vendordiff.patch && -d "${ARTIFACTS_DIR:-}" ]]; then
if [[ -f vendordiff.patch && -d "${ARTIFACTS:-}" ]]; then
echo "Copying patch to artifacts.."
cp vendordiff.patch "${ARTIFACTS_DIR:-}/"
cp vendordiff.patch "${ARTIFACTS:-}/"
fi
ret=1
fi