From: Holger Levsen Date: Wed, 11 Apr 2012 15:58:56 +0000 (+0200) Subject: add some comments X-Git-Url: https://git.uhu-banane.de/?a=commitdiff_plain;h=635fd7461ee5b371973d4a3fdbcbc075e10c79dc;p=profitbricks%2Fjenkins-build-scripts.git add some comments --- diff --git a/debian_build.py b/debian_build.py index 8a3f566..1bd19a5 100755 --- a/debian_build.py +++ b/debian_build.py @@ -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