]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
remove unintended indentation, import datetime module for BUILD_START variable
authorMathias Klette <mathias.klette@profitbricks.com>
Tue, 30 Apr 2013 14:15:25 +0000 (16:15 +0200)
committerMathias Klette <mathias.klette@profitbricks.com>
Tue, 30 Apr 2013 15:38:29 +0000 (17:38 +0200)
common_code.py
debian_build.py

index 9e5c26d628cfc870d9a9e0dfa3cd21a840a8bbbb..cc85d8cc47e51d2db2c919519f27222fdb818b3d 100755 (executable)
@@ -1,6 +1,7 @@
 #!/usr/bin/env python
 # -*- coding: utf-8 -*-
 
+import datetime
 import logging
 import os
 import platform
index f635260021de4c536556e2b4ad50cd968637acd8..44b9f5a825ef6f0be3fc31fe6e8e9751bf9d4a4c 100755 (executable)
@@ -39,50 +39,50 @@ from multiprocessing import cpu_count
 from ConfigParser import SafeConfigParser
 
 # from common_code
-  logger = logger_init()
+logger = logger_init()
 
 # local constants
-  DEFAULT_PARALLEL_JOBS = cpu_count() + 1
-  JOB_URL = 'http://jenkins:80/job/%(flavour)s/buildWithParameters?token=BuildIt&'
-  JOB_DELAY = '0sec'
-  
-  #unused: (except in in-active code)
-  GIT_TARGET_WORKSPACE = os.path.join(
-      CWD,
-      ('%s-build%s' %(BUILD_ID, BUILD_NUMBER)),
-      )
-  #unused: (except in in-active code)
-  GIT_TARGET_DIR = os.path.join(
-      GIT_TARGET_WORKSPACE,
-      os.path.basename(GIT_REPO_PATH)
-      )
-  
-  DPUT_OPTIONS_DEFAULT = {
-      'fqdn': 'alexandria.pb.local',
-      'method': 'scp',
-      'login': 'reprepro',
-      'incoming': '/srv/profitbricks-repository/incoming/profitbricks',
-      'allow_unsigned_uploads': 1,
-      'post_upload_command': 'ssh reprepro@alexandria.pb.local /srv/profitbricks-repository/bin/pb_processincoming',
-      }
-  DPUT_OPTIONS_DEV = {
-      'fqdn': 'alexandria.pb.local',
-      'method': 'scp',
-      'login': 'reprepro',
-      'incoming': '/srv/dev-repository/incoming/',
-      'allow_unsigned_uploads': 1,
-      'post_upload_command': 'ssh reprepro@alexandria.pb.local /srv/dev-repository/bin/pb_processincoming',
-      }
-  DPUT_CF = os.path.join(CWD, '..', 'dput.cf')
-  
-  NO_UPLOAD = ENV['NO_UPLOAD']
-  
-  AUTO_CHANGELOG_JOBS = (
-      'ri-docs',
-      'so-docs',
-      'infrastructure-docs',
-      'storage-docs',
-      )
+DEFAULT_PARALLEL_JOBS = cpu_count() + 1
+JOB_URL = 'http://jenkins:80/job/%(flavour)s/buildWithParameters?token=BuildIt&'
+JOB_DELAY = '0sec'
+
+#unused: (except in in-active code)
+GIT_TARGET_WORKSPACE = os.path.join(
+    CWD,
+    ('%s-build%s' %(BUILD_ID, BUILD_NUMBER)),
+    )
+#unused: (except in in-active code)
+GIT_TARGET_DIR = os.path.join(
+    GIT_TARGET_WORKSPACE,
+    os.path.basename(GIT_REPO_PATH)
+    )
+
+DPUT_OPTIONS_DEFAULT = {
+    'fqdn': 'alexandria.pb.local',
+    'method': 'scp',
+    'login': 'reprepro',
+    'incoming': '/srv/profitbricks-repository/incoming/profitbricks',
+    'allow_unsigned_uploads': 1,
+    'post_upload_command': 'ssh reprepro@alexandria.pb.local /srv/profitbricks-repository/bin/pb_processincoming',
+    }
+DPUT_OPTIONS_DEV = {
+    'fqdn': 'alexandria.pb.local',
+    'method': 'scp',
+    'login': 'reprepro',
+    'incoming': '/srv/dev-repository/incoming/',
+    'allow_unsigned_uploads': 1,
+    'post_upload_command': 'ssh reprepro@alexandria.pb.local /srv/dev-repository/bin/pb_processincoming',
+    }
+DPUT_CF = os.path.join(CWD, '..', 'dput.cf')
+
+NO_UPLOAD = ENV['NO_UPLOAD']
+
+AUTO_CHANGELOG_JOBS = (
+    'ri-docs',
+    'so-docs',
+    'infrastructure-docs',
+    'storage-docs',
+    )
 
 class HudsonUrl(urllib.FancyURLopener):
     pass