else:
logger.debug('Status is now:\n%s' %( gitcmd.status().strip() ))
+ if (BUILD_JOBNAME == 'ri-docs' or BUILD_JOBNAME == 'so-docs') and GIT_BRANCH_NAME == 'master':
+ cmd = ['/usr/bin/git-dch', '-R', '-a']
+ subprocess.check_call(cmd)
+ cmd = ['/usr/bin/git', 'commit', '-a', '-s', '-m', 'Released by jenkins']
+ subprocess.check_call(cmd)
+ cmd = ['/usr/bin/git', 'push', 'origin', 'master']
+ subprocess.check_call(cmd)
+ logger.info('Releeeeeased!!!')
+
# cleanup existing *orig.tar.gz
if os.path.isdir(BUILD_AREA):
files = [os.path.join(BUILD_AREA,file) for file in fnmatch.filter(os.listdir(BUILD_AREA),'*.orig.tar.gz')]