summaryrefslogtreecommitdiff
path: root/src/main/webapp
diff options
context:
space:
mode:
authorTreehugger Robot <treehugger-gerrit@google.com>2018-02-05 16:02:10 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2018-02-05 16:02:10 +0000
commitc1882bb0e6d00955ac55539351fe38ec412ccdad (patch)
treeac467ccdddaa99c0cef657ab2b2326ffe3ea42e9 /src/main/webapp
parente10b3a08a3ec13e9e9c9b27aaa1ced651354b9c3 (diff)
parentb4345557eee3d29f292a254a2b5793ac690a2737 (diff)
downloaddashboard-c1882bb0e6d00955ac55539351fe38ec412ccdad.tar.gz
Merge "Building green build ID page."
Diffstat (limited to 'src/main/webapp')
-rw-r--r--src/main/webapp/WEB-INF/jsp/show_green_release.jsp113
-rw-r--r--src/main/webapp/WEB-INF/web.xml10
2 files changed, 123 insertions, 0 deletions
diff --git a/src/main/webapp/WEB-INF/jsp/show_green_release.jsp b/src/main/webapp/WEB-INF/jsp/show_green_release.jsp
new file mode 100644
index 0000000..d4e4f41
--- /dev/null
+++ b/src/main/webapp/WEB-INF/jsp/show_green_release.jsp
@@ -0,0 +1,113 @@
+<%--
+ ~ Copyright (c) 2017 Google Inc. All Rights Reserved.
+ ~
+ ~ Licensed under the Apache License, Version 2.0 (the "License"); you
+ ~ may not use this file except in compliance with the License. You may
+ ~ obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing, software
+ ~ distributed under the License is distributed on an "AS IS" BASIS,
+ ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ ~ implied. See the License for the specific language governing
+ ~ permissions and limitations under the License.
+ --%>
+<%@ page contentType='text/html;charset=UTF-8' language='java' %>
+<%@ taglib prefix='fn' uri='http://java.sun.com/jsp/jstl/functions' %>
+<%@ taglib prefix='c' uri='http://java.sun.com/jsp/jstl/core'%>
+
+<html>
+ <%@ include file="header.jsp" %>
+ <link rel='stylesheet' href='/css/show_plan_release.css'>
+ <link rel='stylesheet' href='/css/plan_runs.css'>
+ <link rel='stylesheet' href='/css/search_header.css'>
+ <script src='https://www.gstatic.com/external_hosted/moment/min/moment-with-locales.min.js'></script>
+ <script src='js/time.js'></script>
+ <script src='js/plan_runs.js'></script>
+ <script src='js/search_header.js'></script>
+ <script type='text/javascript'>
+ var search;
+ $(document).ready(function() {
+
+ });
+ </script>
+
+ <body>
+ <div class='wide container'>
+ <div class='row' id='release-container'>
+ <table class="bordered highlight">
+ <thead>
+ <tr>
+ <th>Branch</th>
+ <th>Device</th>
+ <th>Last Finished Build</th>
+ <th>Last Green Build</th>
+ </tr>
+ </thead>
+
+ <tbody>
+ <c:forEach var="branchList" items="${greenBuildInfo}">
+ <tr>
+ <td> <c:out value="${branchList.key}"></c:out> </td>
+ <td>
+ <c:forEach varStatus="deviceLoop" var="deviceList" items="${greenBuildInfo[branchList.key]}">
+ <p> <c:out value="${deviceList.key}"></c:out> </p>
+ <br/>
+ <c:if test="${!deviceLoop.last}">
+ <hr/>
+ </c:if>
+ </c:forEach>
+ </td>
+ <td>
+ <c:forEach varStatus="deviceLoop" var="deviceList" items="${greenBuildInfo[branchList.key]}">
+ <c:forEach varStatus="deviceBuildLoop" var="deviceBuildInfo" items="${deviceList.value}">
+ <p>
+ <c:out value="${deviceBuildInfo.deviceBuildTarget}"></c:out> :
+ <c:choose>
+ <c:when test="${deviceBuildInfo.candidateBuildId eq 'No Test Results'}">
+ <c:out value="${deviceBuildInfo.candidateBuildId}"></c:out>
+ </c:when>
+ <c:otherwise>
+ <a href="/show_plan_run?plan=${plan}&time=${deviceBuildInfo.candidateBuildIdTimestamp}">
+ <c:out value="${deviceBuildInfo.candidateBuildId}"></c:out>
+ </a>
+ </c:otherwise>
+ </c:choose>
+ </p>
+ </c:forEach>
+ <c:if test="${!deviceLoop.last}">
+ <hr/>
+ </c:if>
+ </c:forEach>
+ </td>
+ <td>
+ <c:forEach varStatus="deviceLoop" var="deviceList" items="${greenBuildInfo[branchList.key]}">
+ <c:forEach varStatus="deviceBuildLoop" var="deviceBuildInfo" items="${deviceList.value}">
+ <p>
+ <c:choose>
+ <c:when test="${deviceBuildInfo.greenBuildId eq 'N/A'}">
+ <c:out value="${deviceBuildInfo.greenBuildId}"></c:out>
+ </c:when>
+ <c:otherwise>
+ <a href="/show_plan_run?plan=${plan}&time=${deviceBuildInfo.greenBuildIdTimestamp}">
+ <c:out value="${deviceBuildInfo.greenBuildId}"></c:out>
+ </a>
+ </c:otherwise>
+ </c:choose>
+ </p>
+ </c:forEach>
+ <c:if test="${!deviceLoop.last}">
+ <hr/>
+ </c:if>
+ </c:forEach>
+ </td>
+ </tr>
+ </c:forEach>
+ </tbody>
+ </table>
+ </div>
+ </div>
+ <%@ include file="footer.jsp" %>
+ </body>
+</html>
diff --git a/src/main/webapp/WEB-INF/web.xml b/src/main/webapp/WEB-INF/web.xml
index bf8c2ea..dc1cf76 100644
--- a/src/main/webapp/WEB-INF/web.xml
+++ b/src/main/webapp/WEB-INF/web.xml
@@ -26,6 +26,11 @@ Copyright 2016 Google Inc. All Rights Reserved.
</servlet>
<servlet>
+ <servlet-name>show_green_release</servlet-name>
+ <servlet-class>com.android.vts.servlet.ShowGreenReleaseServlet</servlet-class>
+</servlet>
+
+<servlet>
<servlet-name>show_coverage_overview</servlet-name>
<servlet-class>com.android.vts.servlet.ShowCoverageOverviewServlet</servlet-class>
</servlet>
@@ -146,6 +151,11 @@ Copyright 2016 Google Inc. All Rights Reserved.
</servlet-mapping>
<servlet-mapping>
+ <servlet-name>show_green_release</servlet-name>
+ <url-pattern>/show_green_release/*</url-pattern>
+</servlet-mapping>
+
+<servlet-mapping>
<servlet-name>show_coverage_overview</servlet-name>
<url-pattern>/show_coverage_overview/*</url-pattern>
</servlet-mapping>