From 1147faa895382c1ed64f3334fd6a7ab8e3b550be Mon Sep 17 00:00:00 2001 From: Teemu Suo-Anttila Date: Wed, 13 Jan 2016 12:01:40 +0200 Subject: Fix demo and archetype build scripts to deploy all wars at once Change-Id: I5ddf43d0c895404abf2139c847ac805ef08452c8 --- scripts/BuildDemos.py | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'scripts/BuildDemos.py') diff --git a/scripts/BuildDemos.py b/scripts/BuildDemos.py index 8b7aaecf30..7099230339 100644 --- a/scripts/BuildDemos.py +++ b/scripts/BuildDemos.py @@ -65,6 +65,8 @@ if __name__ == "__main__": demosFailed = False ignoredDemos = args.ignore.split(",") + wars = [] + for demo in demos: print("Validating demo %s" % (demo)) try: @@ -76,13 +78,7 @@ if __name__ == "__main__": if hasattr(args, "repo") and args.repo is not None: updateRepositories(join(resultPath, demo), args.repo) mavenValidate(demo, logFile=getLogFile(demo)) - resultWars = copyWarFiles(demo) - for war in resultWars: - try: - deployWar(war) - except Exception as e: - print("War %s failed to deploy: %s" % (war, e)) - demosFailed = True + wars.extend(copyWarFiles(demo)) print("%s demo validation succeeded!" % (demo)) except Exception as e: print("%s demo validation failed: %s" % (demo, e)) @@ -97,5 +93,13 @@ if __name__ == "__main__": except: pass print("") + + for war in wars: + try: + deployWar(war) + except Exception as e: + print("War %s failed to deploy: %s" % (war, e)) + demosFailed = True + if demosFailed: sys.exit(1) -- cgit v1.2.3