mirror of
https://gitea.osmocom.org/sim-card/pysim.git
synced 2026-03-16 18:38:32 +03:00
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:
@@ -5,6 +5,7 @@
|
|||||||
# * WITH_MANUALS: build manual PDFs if set to "1"
|
# * WITH_MANUALS: build manual PDFs if set to "1"
|
||||||
# * PUBLISH: upload manuals after building if set to "1" (ignored without WITH_MANUALS = "1")
|
# * PUBLISH: upload manuals after building if set to "1" (ignored without WITH_MANUALS = "1")
|
||||||
# * JOB_TYPE: one of 'test', 'distcheck', 'pylint', 'docs'
|
# * JOB_TYPE: one of 'test', 'distcheck', 'pylint', 'docs'
|
||||||
|
# * SKIP_CLEAN_WORKSPACE: don't run osmo-clean-workspace.sh (for pyosmocom CI)
|
||||||
#
|
#
|
||||||
|
|
||||||
export PYTHONUNBUFFERED=1
|
export PYTHONUNBUFFERED=1
|
||||||
@@ -16,7 +17,9 @@ if [ ! -d "./tests/" ] ; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
osmo-clean-workspace.sh
|
if [ -z "$SKIP_CLEAN_WORKSPACE" ]; then
|
||||||
|
osmo-clean-workspace.sh
|
||||||
|
fi
|
||||||
|
|
||||||
case "$JOB_TYPE" in
|
case "$JOB_TYPE" in
|
||||||
"test")
|
"test")
|
||||||
|
|||||||
Reference in New Issue
Block a user