Title: [272560] trunk/Tools
Revision
272560
Author
aakash_j...@apple.com
Date
2021-02-08 16:32:32 -0800 (Mon, 08 Feb 2021)

Log Message

[build.webkit.org] Add HTML file that translates a builder name and number pair to a valid Buildbot URL
https://bugs.webkit.org/show_bug.cgi?id=221579

Reviewed by Ryosuke Niwa.

* CISupport/build-webkit-org/public_html/builders: Added.
* CISupport/build-webkit-org/public_html/builders/index.html: Added.

Modified Paths

Added Paths

Diff

Added: trunk/Tools/CISupport/build-webkit-org/public_html/builders/index.html (0 => 272560)


--- trunk/Tools/CISupport/build-webkit-org/public_html/builders/index.html	                        (rev 0)
+++ trunk/Tools/CISupport/build-webkit-org/public_html/builders/index.html	2021-02-09 00:32:32 UTC (rev 272560)
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+<body>
+Redirecting...
+<script>
+
+async function redirect() {
+    const url = "" URL(location.href);
+    const builderName = url.searchParams.get('builderName').replace(/ /g, '-').replace(/,/g, '_');
+
+    const response = await fetch(`/api/v2/builders/${builderName}?field=name&field=builderid`);
+    const buildersData = JSON.parse(await response.text());
+
+    const buildNumber = url.searchParams.get('buildNumber').split('-')[0];
+
+    if (buildersData.builders.length)
+        location.href = ""
+    else    
+        alert(`Could not find the builder: ${builderName}`);
+}
+
+redirect().catch(() => alert('Failed to get the list of builders. Try reloading.'));
+
+</script>
+</body>
+</html>

Modified: trunk/Tools/ChangeLog (272559 => 272560)


--- trunk/Tools/ChangeLog	2021-02-09 00:32:05 UTC (rev 272559)
+++ trunk/Tools/ChangeLog	2021-02-09 00:32:32 UTC (rev 272560)
@@ -1,3 +1,13 @@
+2021-02-08  Aakash Jain  <aakash_j...@apple.com>
+
+        [build.webkit.org] Add HTML file that translates a builder name and number pair to a valid Buildbot URL
+        https://bugs.webkit.org/show_bug.cgi?id=221579
+
+        Reviewed by Ryosuke Niwa.
+
+        * CISupport/build-webkit-org/public_html/builders: Added.
+        * CISupport/build-webkit-org/public_html/builders/index.html: Added.
+
 2021-02-08  Youenn Fablet  <you...@apple.com>
 
         [MacOS] Enable Audio Capture in GPUProcess by default
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to