Commit 57249549 authored by intrigeri's avatar intrigeri
Browse files

It's the library's responsibility to construct the job name.

parent 6d16d5ca
......@@ -33,7 +33,7 @@ wrappers:
assert type(snippet) is str
assert snippet.__len__() > 0
self.job = yaml.safe_load(snippet)
self.job['name'] = "build_Tails_ISO_" + branch['job_name']
self.job['name'] = branch['job_name']
self.job['scm'] = [{'git': \
{'branches': [branch['branch_name']],
'browser': 'cgit',
......@@ -54,11 +54,11 @@ def get_active_branches():
"""Retrieve the list of active branches using the Tails python library.
Now is just a stub returning a list of branch dict."""
return [{'branch_name': 'feature/test_active_branch_job',
'job_name': 'feature-test_active_branch_job',
'job_name': 'build_Tails_ISO_feature-test_active_branch_job',
'base_branch': False,
},
{'branch_name': 'bugfix/there_should_be_two_of_them',
'job_name': 'bugfix-there_should_be_two_of_them',
'job_name': 'build_Tails_ISO_bugfix-there_should_be_two_of_them',
'base_branch': True,
},
]
......
Supports Markdown
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