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