]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
commented out the dput stuff
authorRobin Wittler <robin.wittler@profitbricks.com>
Mon, 8 Aug 2011 15:55:33 +0000 (17:55 +0200)
committerRobin Wittler <robin.wittler@profitbricks.com>
Mon, 8 Aug 2011 15:55:33 +0000 (17:55 +0200)
testgit_build.py

index f9081310064960960b540a8baa94eb7e536d9a7a..65a03a38e0b02893b974931fe46e2b6943e990f3 100755 (executable)
@@ -74,8 +74,15 @@ SMTP_BUILD_SUCCESS = 'SUCCESSFULL'
 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',
@@ -265,8 +272,8 @@ if __name__ == '__main__':
             'This is the output of git-buildpackage: \n%s'
             %(ret)
     )
-    create_dput_cfg()
-    dput_package_upload()
+    #create_dput_cfg()
+    #dput_package_upload()
 
     exit_ok()