contrib/jenkins: add SKIP_CLEAN_WORKSPACE

In order to run this script from pyosmocom's contrib/jenkins.sh script,
we want to skip the clean workspace step. Add an environment variable to
do that.

Related: OS#6570
Change-Id: Ic8dc9b85da17719195f7374d37eccb4dedba6ce8
This commit is contained in:
Oliver Smith
2024-09-20 15:47:01 +02:00
parent c09d4cc6b8
commit 7b95fac022

View File

@@ -5,6 +5,7 @@
# * WITH_MANUALS: build manual PDFs if set to "1"
# * PUBLISH: upload manuals after building if set to "1" (ignored without WITH_MANUALS = "1")
# * JOB_TYPE: one of 'test', 'distcheck', 'pylint', 'docs'
# * SKIP_CLEAN_WORKSPACE: don't run osmo-clean-workspace.sh (for pyosmocom CI)
#
export PYTHONUNBUFFERED=1
@@ -16,7 +17,9 @@ if [ ! -d "./tests/" ] ; then
exit 1
fi
osmo-clean-workspace.sh
if [ -z "$SKIP_CLEAN_WORKSPACE" ]; then
osmo-clean-workspace.sh
fi
case "$JOB_TYPE" in
"test")