summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorTeemu Suo-Anttila <teemusa@vaadin.com>2015-08-28 14:13:51 +0300
committerHenri Sara <hesara@vaadin.com>2015-08-31 16:51:39 +0300
commit76ec46407d3346587f7bd47a4d4cd02ab269110f (patch)
treec4b498040e6ffe7d5101a00fcda1424fef074df6 /scripts
parent81be262f0f0596972c4838833a4544392960d974 (diff)
downloadvaadin-framework-76ec46407d3346587f7bd47a4d4cd02ab269110f.tar.gz
vaadin-framework-76ec46407d3346587f7bd47a4d4cd02ab269110f.zip
Add result folder creation to publish report generator
Change-Id: Icdc71f7e5707cfb985c8b54f3172c332ea21ad1e
Diffstat (limited to 'scripts')
-rw-r--r--scripts/GeneratePublishReport.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/GeneratePublishReport.py b/scripts/GeneratePublishReport.py
index 0293bdbb44..274203e5cf 100644
--- a/scripts/GeneratePublishReport.py
+++ b/scripts/GeneratePublishReport.py
@@ -1,6 +1,8 @@
#coding=UTF-8
import argparse, cgi
+from os.path import exists, isdir
+from os import makedirs
parser = argparse.ArgumentParser(description="Post-publish report generator")
parser.add_argument("version", type=str, help="Vaadin version that was just built")
@@ -8,6 +10,13 @@ parser.add_argument("buildResultUrl", type=str, help="URL for the build result p
args = parser.parse_args()
+resultPath = "result"
+if not exists(resultPath):
+ makedirs(resultPath)
+elif not isdir(resultPath):
+ print("Result path is not a directory.")
+ sys.exit(1)
+
(major, minor, maintenance) = args.version.split(".", 2)
prerelease = "." in maintenance
if prerelease: