Revision 79144a72 ci/snf-ci
b/ci/snf-ci | ||
---|---|---|
27 | 27 |
RUN_BURNIN_CMD, |
28 | 28 |
] |
29 | 29 |
|
30 |
CLEAN_CONFIG_CMDS = [CREATE_SERVER_CMD, ALL_CMDS] |
|
31 |
|
|
32 | 30 |
USAGE = """usage: %%prog [options] command |
33 | 31 |
|
34 | 32 |
command: |
... | ... | |
63 | 61 |
parser.add_option("--ssh-keys", dest="ssh_keys", default=None, |
64 | 62 |
help="Upload/Install the public ssh keys contained" |
65 | 63 |
" in this file to the server") |
64 |
parser.add_option("-n", "--build-id", dest="build_id", default=None, |
|
65 |
type="int", |
|
66 |
help="Specify a number to use to identify this build." |
|
67 |
" One can later use this number to retrieve" |
|
68 |
" information (such as IPs, passwords etc) about" |
|
69 |
" the machines created. If not given this script" |
|
70 |
" will create a new build-id.") |
|
66 | 71 |
parser.add_option("--fetch-packages", dest="fetch_packages", |
67 | 72 |
default=None, |
68 | 73 |
help="Download the debian packages that were created" |
... | ... | |
98 | 103 |
else: |
99 | 104 |
setattr(options, command, True) |
100 | 105 |
|
101 |
cleanup_config = command in CLEAN_CONFIG_CMDS |
|
102 | 106 |
synnefo_ci = SynnefoCI(config_file=options.config_file, |
103 |
cleanup_config=cleanup_config,
|
|
107 |
build_id=options.build_id,
|
|
104 | 108 |
cloud=options.kamaki_cloud) |
105 | 109 |
|
106 | 110 |
if getattr(options, CREATE_SERVER_CMD, False): |
Also available in: Unified diff