# slightly different version numbers per branch
if GIT_BRANCH_NAME == 'master':
debian_version = '$(version)-%s+%s' % (pb_version, REVISION)
- elif GIT_BRANCH_NAME.startswith('release') or GIT_BRANCH_NAME.startswith('hotfix'):
+ elif GIT_BRANCH_NAME.startswith('release/') or GIT_BRANCH_NAME.startswith('hotfix'):
debian_version = '$(version)-%s~rc%s' % (pb_version, REVISION)
+ elif GIT_BRANCH_NAME == 'experimental':
+ debian_version = '$(version)-%s~experimental%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':
+ if GIT_BRANCH_NAME == 'master' or GIT_BRANCH_NAME.startswith('hotfix/'):
ftp.cwd('production-proposed-updates')
- elif GIT_BRANCH_NAME.startswith('release/') or GIT_BRANCH_NAME.startswith('hotfix/'):
- ftp.cwd('staging');
+ elif GIT_BRANCH_NAME == 'experimental':
+ ftp.cwd('experimental');
else:
ftp.cwd('pre-staging');
logger.info('FTP working directory: %s' %(ftp.pwd()))