From: Mathias Klette Date: Tue, 30 Apr 2013 14:55:16 +0000 (+0200) Subject: update common_code: preset NO_UPLOAD even if it's not set in env X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=15fadbece9e578aae84a2bb7571a354a1f4900a3;p=profitbricks%2Fjenkins-build-scripts.git update common_code: preset NO_UPLOAD even if it's not set in env --- diff --git a/common_code.py b/common_code.py index 0b13caf..cba42eb 100755 --- a/common_code.py +++ b/common_code.py @@ -41,6 +41,10 @@ def exit_error(): ENV = os.environ ENV.update({'ARGV': ' '.join(sys.argv)}) +try: + ENV.update({'NO_UPLOAD': ENV['NO_UPLOAD']}) +else: + ENV.update({'NO_UPLOAD': False}) BIN_GIT = '/usr/bin/git' BIN_RM = '/bin/rm'