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)
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