#unused: (except in in-active code)
GIT_TARGET_WORKSPACE = os.path.join(
- CWD,
+ ENV['WORKSPACE'],
('%s-build%s' %(ENV['BUILD_ID'], ENV['BUILD_NUMBER'])),
)
#unused: (except in in-active code)
'allow_unsigned_uploads': 1,
'post_upload_command': 'ssh reprepro@alexandria.pb.local /srv/dev-repository/bin/pb_processincoming',
}
-DPUT_CF = os.path.join(CWD, '..', 'dput.cf')
+DPUT_CF = os.path.join(ENV['WORKSPACE'], '..', 'dput.cf')
AUTO_CHANGELOG_JOBS = (
'ri-docs',
#
# if reports.tgz exists untar it to workspace and delete it.
# reports.tgz is generated by /root/.pbuilder/hooks.d/B01-test
- cmd = ['/bin/tar', 'xzvf', os.path.join(CWD, '../build-area/result/reports.tgz'), '-C', CWD]
+ cmd = ['/bin/tar', 'xzvf', os.path.join(ENV['WORKSPACE'], '../build-area/result/reports.tgz'), '-C', ENV['WORKSPACE']]
try:
subprocess.check_call(cmd)
- cmd = ['/usr/bin/sudo' , '/bin/rm', os.path.join(CWD, '../build-area/result/reports.tgz')]
+ cmd = ['/usr/bin/sudo' , '/bin/rm', os.path.join(ENV['WORKSPACE'], '../build-area/result/reports.tgz')]
subprocess.check_call(cmd)
except:
pass
# strip epoch
if ":" in version:
version = version.split(":", 1)[1]
- changes_file = os.path.join(CWD, '../build-area/result/', '%s_%s_amd64.changes' % (pkg_name, version))
+ changes_file = os.path.join(ENV['WORKSPACE'], '../build-area/result/', '%s_%s_amd64.changes' % (pkg_name, version))
# display changes file
fh = open(changes_file, 'r')
logger.info('%s' % (fh.read()))