SMTP_BUILD_ERROR = 'NOT SUCCESSFULL'
SMTP_FROM = '%s@profitbricks.com' %(pwd.getpwuid(os.geteuid()).pw_name)
+CRE_URI = re.compile(r'(?P<proto>\w+)\:\/\/(?P<url>[a-zA-Z0-9\-\_\.\+]+)\/(?P<dir>.*)$')
+DPUT_URI = CRE_URI.match(GIT_REPO_PATH)
+if not DPUT_URI:
+ raise Exception(
+ 'could not build DPUT_URI from "%s"'
+ %(GIT_REPO_PATH)
+ )
DPUT_OPTIONS = {
- 'fqdn': 'minden.profitbricks.localdomain',
+ 'fqdn': DPUT_URI.get('url'),
'method': 'scp',
'login': 'jenkins',
'incoming': '/srv/debian-repository/incoming',
'This is the output of git-buildpackage: \n%s'
%(ret)
)
- create_dput_cfg()
- dput_package_upload()
+ #create_dput_cfg()
+ #dput_package_upload()
exit_ok()