Age | Commit message (Expand) | Author | Files | Lines |
---|---|---|---|---|
2017-09-01 | Move apex build jobs into 'apex-project-jobs' file | 1 | -0/+127 |
![]() |
index : releng | |
Grokmirror user |
summaryrefslogtreecommitdiffstats |
Age | Commit message (Expand) | Author | Files | Lines |
---|---|---|---|---|
2017-09-01 | Move apex build jobs into 'apex-project-jobs' file | 1 | -0/+127 |
© 2015 Open Platform for NFV Project, Inc., a Linux Foundation Collaborative Project. All Rights Reserved.
Open Platform for NFV and OPNFV are trademarks of the Open Platform for NFV Project, Inc.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered
##############################################################################
# Copyright (c) 2016 Tim Rozet (trozet@redhat.com) and others.
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
import pprint
import yaml
from jinja2 import Environment
from jinja2 import FileSystemLoader
gspathname = dict()
branch = dict()
build_slave = dict()
env = Environment(loader=FileSystemLoader('./'), autoescape=True)
with open('scenarios.yaml.hidden') as _:
scenarios = yaml.safe_load(_)
template = env.get_template('apex.yml.j2')
print("Scenarios are: ")
pprint.pprint(scenarios)
for stream in scenarios:
if stream == 'master':
gspathname['master'] = ''
branch[stream] = stream
else:
gspathname[stream] = '/' + stream
branch[stream] = 'stable/' + stream
build_slave[stream] = 'apex-baremetal-{}'.format(stream)
output = template.render(scenarios=scenarios, gspathname=gspathname,
branch=branch, build_slave=build_slave)
with open('./apex.yml', 'w') as fh:
fh.write(output)
© 2015 Open Platform for NFV Project, Inc., a Linux Foundation Collaborative Project. All Rights Reserved.
Open Platform for NFV and OPNFV are trademarks of the Open Platform for NFV Project, Inc.
Linux Foundation is a registered trademark of The Linux Foundation. Linux is a registered trademark of Linus Torvalds.
Please see our terms of use, trademark policy, and privacy policy.