diff options
author | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-08-28 14:13:51 +0300 |
---|---|---|
committer | Teemu Suo-Anttila <teemusa@vaadin.com> | 2015-08-28 14:13:51 +0300 |
commit | f256bdab90a7ee729ef6b3cc8cd82dac533df805 (patch) | |
tree | 3aa076abdc003bf27bb98508ef681c7fe87b353f /scripts | |
parent | 1d36db6d112c818a9c75e7cd10eb6b3519119406 (diff) | |
download | vaadin-framework-f256bdab90a7ee729ef6b3cc8cd82dac533df805.tar.gz vaadin-framework-f256bdab90a7ee729ef6b3cc8cd82dac533df805.zip |
Add result folder creation to publish report generator
Change-Id: Id1642eb7e04fde8444080a178627587648d0ed94
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/GeneratePublishReport.py | 9 |
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: |