diff options
author | Henri Sara <hesara@vaadin.com> | 2015-12-02 12:32:47 +0200 |
---|---|---|
committer | Henri Sara <hesara@vaadin.com> | 2015-12-02 12:32:47 +0200 |
commit | 099261a1b6cef7910705a6c890c1135c3028a170 (patch) | |
tree | c6df290014af6c472412305760844ae62f24acdb /scripts | |
parent | 715d9ed84666c858c759d27d00b57d629bbe9b7b (diff) | |
download | vaadin-framework-099261a1b6cef7910705a6c890c1135c3028a170.tar.gz vaadin-framework-099261a1b6cef7910705a6c890c1135c3028a170.zip |
Get revision numbers for tagging from TeamCity
Optionally get revision numbers to tag from TeamCity.
If no revision numbers are given, a placeholder is used in the
generated script.
Change-Id: Ic266a22e06fd470e2c2e0647b8d83870ffc650ab
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/GenerateStagingReport.py | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/scripts/GenerateStagingReport.py b/scripts/GenerateStagingReport.py index 23977aa933..963967d28a 100644 --- a/scripts/GenerateStagingReport.py +++ b/scripts/GenerateStagingReport.py @@ -11,6 +11,11 @@ parser.add_argument("buildResultUrl", type=str, help="URL for the build result p parser.add_argument("stagingRepo", type=str, help="URL for the staging repository") parser.add_argument("tbapiUrl", type=str, help="URL for the TestBench API build") +parser.add_argument("frameworkRevision", type=str, default="[fill in framework repository revision]", nargs="?") +parser.add_argument("screenshotRevision", type=str, default="[fill in screenshot repository revision]", nargs="?") +parser.add_argument("archetypeRevision", type=str, default="[fill in maven-integration repository revision]", nargs="?") +parser.add_argument("mavenPluginRevision", type=str, default="[fill in maven-plugin repository revision]", nargs="?") + args = parser.parse_args() content = """<html> @@ -45,10 +50,10 @@ content += """</pre> VERSION={version} GERRIT_USER=[fill in your gerrit username] -FRAMEWORK_REVISION=[fill in framework revision] -SCREENSHOTS_REVISION=[fill in screenshot repository revision] -ARCHETYPES_REVISION=[fill in maven-integration repository revision] -PLUGIN_REVISION=[fill in maven plug-in repository revision] +FRAMEWORK_REVISION={frameworkRevision} +SCREENSHOTS_REVISION={screenshotRevision} +ARCHETYPES_REVISION={archetypeRevision} +PLUGIN_REVISION={mavenPluginRevision} git clone ssh://$GERRIT_USER@dev.vaadin.com:29418/vaadin cd vaadin @@ -77,7 +82,7 @@ cd .. <tr><td><a href="{tbapi}">Build and publish TestBench API for version {version} if proceeding</a></td></tr> </table> </body> -</html>""".format(url=args.buildResultUrl, repoUrl=args.stagingRepo, version=args.version, tbapi=args.tbapiUrl) +</html>""".format(url=args.buildResultUrl, repoUrl=args.stagingRepo, version=args.version, tbapi=args.tbapiUrl, frameworkRevision=args.frameworkRevision, screenshotRevision=args.screenshotRevision, archetypeRevision=args.archetypeRevision, mavenPluginRevision=args.mavenPluginRevision) f = open("result/report.html", 'w') f.write(content) |