Commit b2d43d2f authored by Marco Clemencic's avatar Marco Clemencic
Browse files

Merge branch 'sstahl_change_message' into 'master'

Change gitlab message in case no new reference is built

See merge request lhcb-core/LbNightlyTools!379
parents 89d07a53 2de6ac44
Pipeline #3283982 passed with stage
in 2 minutes and 13 seconds
......@@ -388,18 +388,31 @@ def post_gitlab_feedback(ref_slot, test_slot, flavour, mr_slots_config):
test_slot=test_slot.name,
test_build=test_slot.build_id,
)
message = ('Started [reference]({prefix}/{ref_id}/) '
'and [{mode} test]({prefix}/{test_id}/) '
'builds. Once done, check the [comparison]'
'({prefix}/compare?a={ref_id}&b={test_id})'
' of build and test results.').format(
prefix=prefix,
flavour=flavour,
ref_id=ref_id,
test_id=test_id,
mode=('integration'
if mr_slots_config['merge'] else 'branch'),
)
if mr_slots_config['build_reference']:
message = ('Started [reference]({prefix}/{ref_id}/) '
'and [{mode} test]({prefix}/{test_id}/) '
'builds. Once done, check the [comparison]'
'({prefix}/compare?a={ref_id}&b={test_id})'
' of build and test results.').format(
prefix=prefix,
flavour=flavour,
ref_id=ref_id,
test_id=test_id,
mode=('integration'
if mr_slots_config['merge'] else 'branch'),
)
else:
message = (
'Started [{mode} test]({prefix}/{test_id}/) build.'
' Once done, check the [results]({prefix}/{test_id}/)'
' or the [comparison]({prefix}/compare?a={ref_id}&b={test_id})'
' to a [reference]({prefix}/{ref_id}/) build.').format(
prefix=prefix,
flavour=flavour,
ref_id=ref_id,
test_id=test_id,
mode=('integration' if mr_slots_config['merge'] else 'branch'),
)
logger.info('GitLab feedback: {!r}'.format(message))
if os.environ.get('GITLAB_TOKEN'):
trigger_source = mr_slots_config['trigger']
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment