def get_ci_link(config):
''' Get CI build link for the current build deployment. '''
if is_travis():
base_url = config['ci']['base_url'].rstrip('/')
return ci.TRAVIS_BUILD_URL.format(
base_url=base_url,
repo_slug=env.get('TRAVIS_REPO_SLUG'),
build_id=env.get('TRAVIS_BUILD_ID')
)
# Other CI providers aren't supported at the moment.
# TODO: Add support for more providers.
return None
评论列表
文章目录