flavour = GIT_REPO_NAME[6:-4]
# slightly different version numbers per branch
- if GIT_BRANCH_NAME == 'master' or GIT_BRANCH_NAME.startswith('hotfix'):
+ if GIT_BRANCH_NAME == 'master':
debian_version = '$(version)-%s+%s' % (pb_version, REVISION)
- elif GIT_BRANCH_NAME.startswith('release'):
+ elif GIT_BRANCH_NAME.startswith('release') or GIT_BRANCH_NAME.startswith('hotfix'):
debian_version = '$(version)-%s~rc%s' % (pb_version, REVISION)
else:
debian_version = '$(version)-%s~develop%s' % (pb_version, REVISION)
logger.info('FTP Login on %s successful' %(ftp.host))
- if GIT_BRANCH_NAME == 'master' or GIT_BRANCH_NAME.startswith('hotfix/'):
+ if GIT_BRANCH_NAME == 'master':
ftp.cwd('production-proposed-updates')
- elif GIT_BRANCH_NAME.startswith('release/'):
+ elif GIT_BRANCH_NAME.startswith('release/') or GIT_BRANCH_NAME.startswith('hotfix/'):
ftp.cwd('staging');
else:
ftp.cwd('pre-staging');