aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/presentation/generator_alerts.py
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2018-09-19 10:55:53 +0200
committerTibor Frank <tifrank@cisco.com>2018-09-19 12:46:04 +0200
commit900fe671c5e3095ec9a3bc31e1b0a7d1f8045116 (patch)
tree8a79d4a83aee8ee4b38a70d9535c93884d2df764 /resources/tools/presentation/generator_alerts.py
parent5ad9b364cbd45a0b25d73412b9777ac14df92b0a (diff)
CSIT-1288: Prepare data to be sent by Jenkins
Change-Id: I0840883d52180d09f7de2bd9b0391a0db24105f5 Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/presentation/generator_alerts.py')
-rw-r--r--resources/tools/presentation/generator_alerts.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/resources/tools/presentation/generator_alerts.py b/resources/tools/presentation/generator_alerts.py
index 77302b6168..cbdb1fd07b 100644
--- a/resources/tools/presentation/generator_alerts.py
+++ b/resources/tools/presentation/generator_alerts.py
@@ -268,10 +268,11 @@ class Alerting(object):
if zip_file:
logging.info("Writing the file '{0}/{1}' ...".
format(config["output-dir"], zip_file))
- execute_command("tar czvf {dir}/{zip} {dir}/{input}.*".format(
- dir=config["output-dir"],
- zip=zip_file,
- input=config["output-file"]))
+ execute_command("tar czvf {dir}/{zip} --directory={dir} "
+ "{input}.txt {input}.html".
+ format(dir=config["output-dir"],
+ zip=zip_file,
+ input=config["output-file"]))
else:
raise AlertingError("Alert of type '{0}' is not implemented.".
format(alert["type"]))