]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
add some comments
authorHolger Levsen <holger@layer-acht.org>
Wed, 11 Apr 2012 15:58:56 +0000 (17:58 +0200)
committerHolger Levsen <holger@layer-acht.org>
Wed, 11 Apr 2012 15:58:56 +0000 (17:58 +0200)
debian_build.py

index 8a3f5661511e29e8225dab3ac9a82895ea037dac..1bd19a57364bba7949b24a85b918f1d457e22aa5 100755 (executable)
@@ -50,12 +50,13 @@ BUILD_URL = os.environ.get('BUILD_URL')
 GIT_REPO_PATH = os.environ.get('GIT_REPO_PATH')
 GIT_REPO_NAME = os.path.basename(GIT_REPO_PATH)
 GIT_BRANCH_NAME = os.environ.get('GIT_BRANCH_NAME')
+
+#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)
@@ -440,7 +441,10 @@ if __name__ == '__main__':
         exit_error()
     else:
         logger.debug('git-buildpackage executed successfully')
-        build_log=os.path.join('../build-area/result/', '%s_%s_amd64.build' % (pkg_name, version))
+
+        # FIXME: if reports.tgz exists untar it to workspace and delete it.
+        # tar xzvf ../build-area/result/reports.tgz 2>/dev/null|| true
+
         # build was succesful, now let's tag it
         if GIT_BRANCH_NAME == 'master' or GIT_BRANCH_NAME.startswith('hotfix/'):
             # replace ~ with _ for tags