]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
update common_code: preset NO_UPLOAD even if it's not set in env
authorMathias Klette <mathias.klette@profitbricks.com>
Tue, 30 Apr 2013 14:55:16 +0000 (16:55 +0200)
committerMathias Klette <mathias.klette@profitbricks.com>
Tue, 30 Apr 2013 15:38:52 +0000 (17:38 +0200)
common_code.py

index 0b13caf1b68a7a02c56cda453d83020a40ecf5b5..cba42eb7db821609cb9d1d745c944a042370c84c 100755 (executable)
@@ -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'