Title: [255506] trunk/Tools
- Revision
- 255506
- Author
- [email protected]
- Date
- 2020-01-31 10:05:08 -0800 (Fri, 31 Jan 2020)
Log Message
[ews] add build step to set custom build summary
https://bugs.webkit.org/show_bug.cgi?id=207026
Reviewed by Jonathan Bedard.
* BuildSlaveSupport/ews-build/steps.py:
(SetBuildSummary.doStepIf): Run this step only if build_summary property is set.
(SetBuildSummary.hideStepIf): Hide this step if it is not executed.
(SetBuildSummary.start):
Modified Paths
Diff
Modified: trunk/Tools/BuildSlaveSupport/ews-build/steps.py (255505 => 255506)
--- trunk/Tools/BuildSlaveSupport/ews-build/steps.py 2020-01-31 17:59:26 UTC (rev 255505)
+++ trunk/Tools/BuildSlaveSupport/ews-build/steps.py 2020-01-31 18:05:08 UTC (rev 255506)
@@ -2000,3 +2000,23 @@
if self.results != SUCCESS:
return {u'step': u'Failed to apply watchlist'}
return super(ApplyWatchList, self).getResultSummary()
+
+
+class SetBuildSummary(buildstep.BuildStep):
+ name = "set-build-summary"
+ descriptionDone = ['Set build summary']
+ alwaysRun = True
+ haltOnFailure = False
+ flunkOnFailure = False
+
+ def doStepIf(self, step):
+ return self.getProperty('build_summary', False)
+
+ def hideStepIf(self, results, step):
+ return not self.doStepIf(step)
+
+ def start(self):
+ build_summary = self.getProperty('build_summary', 'build successful')
+ self.finished(SUCCESS)
+ self.build.buildFinished([build_summary], self.build.results)
+ return defer.succeed(None)
Modified: trunk/Tools/ChangeLog (255505 => 255506)
--- trunk/Tools/ChangeLog 2020-01-31 17:59:26 UTC (rev 255505)
+++ trunk/Tools/ChangeLog 2020-01-31 18:05:08 UTC (rev 255506)
@@ -1,3 +1,15 @@
+2020-01-31 Aakash Jain <[email protected]>
+
+ [ews] add build step to set custom build summary
+ https://bugs.webkit.org/show_bug.cgi?id=207026
+
+ Reviewed by Jonathan Bedard.
+
+ * BuildSlaveSupport/ews-build/steps.py:
+ (SetBuildSummary.doStepIf): Run this step only if build_summary property is set.
+ (SetBuildSummary.hideStepIf): Hide this step if it is not executed.
+ (SetBuildSummary.start):
+
2020-01-31 Jonathan Bedard <[email protected]>
results.webkit.org: Handle modified firewall rules
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes