'%s' %(BUILD_ARCH), '--rootcmd', 'fakeroot',
'--append-to-version', '-%s' %(version),
'--initrd', '--arch-in-name',
- 'configure' ]
+ 'kernel_image' ]
#'kernel_debug',
# 'kernel_image', 'kernel_source', 'kernel_headers', 'modules']
)
kernel_config = read_file(KERNEL_CONFIG_PATH)
# don't put the branch names into the packages names
- if GIT_BRANCH_NAME[:7] == 'master-':
+ if GIT_BRANCH_NAME.startswith('master-'):
flavour = GIT_BRANCH_NAME[7:]
- elif GIT_BRANCH_NAME[:8] == 'develop-':
+ elif GIT_BRANCH_NAME.startswith('develop-'):
flavour = GIT_BRANCH_NAME[8:]
- elif GIT_BRANCH_NAME[:8] == 'release-':
+ elif GIT_BRANCH_NAME.startswith('release-'):
flavour = GIT_BRANCH_NAME[8:]
- elif GIT_BRANCH_NAME[:7] == 'hotfix-':
+ elif GIT_BRANCH_NAME.startswith('hotfix-'):
flavour = GIT_BRANCH_NAME[7:]
else:
logger.error('GIT_BRANCH_NAME is %s, flavour is none.' % GIT_BRANCH_NAME)
logger.info('FTP Login on %s successful' %(ftp.host))
- if GIT_BRANCH_NAME.startswith('master-'):
+ if GIT_BRANCH_NAME.startswith('master-') or GIT_BRANCH_NAME.startswith('hotfix-'):
ftp.cwd('production-proposed-updates')
+ elif GIT_BRANCH_NAME.startswith('release-'):
+ ftp.cwd('staging');
else:
ftp.cwd('pre-staging');