Commit 2f457344 authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

ci: Merge '' to snf-ci script

Add '--fetch-packages' option to snf-ci script, in order to download the
created debian packages.
parent b2381acb
#!/usr/bin/env python
Download Synnefo packages
from utils import SynnefoCI
def fetch_packages():
"""Download Synnefo packages"""
synnefo_ci = SynnefoCI()
if __name__ == "__main__":
......@@ -26,7 +26,7 @@ USAGE = """usage: %%prog [options] command
* %s Create the slave server
* %s: Create in Synnefo packages in created server
* %s: Create debian packages for Synnefo in the created server
* %s: Deploy Synnefo in created server
* %s: Run Synnefo unittests
* %s: Run snf-burnin in the deployed Synnefo
......@@ -50,6 +50,10 @@ def main():
help="Name of flavor to use for the server.")
parser.add_option("-i", "--image", dest="image", default=None,
help="UUID of image to use for the server.")
parser.add_option("--fetch-packages", dest="fetch_packages",
action="store_true", default=False,
help="Download the debian packages that were created"
" during the '%s' step." % BUILD_SYNNEFO_CMD)
(options, args) = parser.parse_args()
......@@ -84,6 +88,8 @@ def main():
if getattr(options, BUILD_SYNNEFO_CMD, False):
if options.fetch_packages:
if getattr(options, DEPLOY_SYNNEFO_CMD, False):
if getattr(options, TEST_SYNNEFO_CMD, False):
......@@ -519,3 +519,5 @@ class SynnefoCI(object):
self.logger.debug("Untar packages file %s" % pkgs_file)
os.system("cd %s; tar xzf synnefo_build-area.tgz" % pkgs_dir)"Downloaded debian packages to %s" %
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