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=88130198d2dfe14f7e9ab42dda82c3b301e76f97;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'