From 7b95fac0221dfb2b78d37da0165381408066ba71 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Fri, 20 Sep 2024 15:47:01 +0200 Subject: [PATCH] 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 --- contrib/jenkins.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/jenkins.sh b/contrib/jenkins.sh index 42bf5af6..5fa52261 100755 --- a/contrib/jenkins.sh +++ b/contrib/jenkins.sh @@ -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")