diff options
author | Young Gyu Park <younggyu@google.com> | 2018-01-12 11:50:00 +0900 |
---|---|---|
committer | Young Gyu Park <younggyu@google.com> | 2018-02-05 18:15:23 +0900 |
commit | b4345557eee3d29f292a254a2b5793ac690a2737 (patch) | |
tree | ebd87f8add9071cdf76cda4b7a23875db6d2b3ed /src/main/webapp | |
parent | fcdf128425d8f1134729845f6b32c2b29da8abfd (diff) | |
download | dashboard-b4345557eee3d29f292a254a2b5793ac690a2737.tar.gz |
Building green build ID page.
Test: Tested with browser on GAE
Bug: 72420700
Change-Id: Ie235ef9502ff4b3f02110121831f0a1dbf41e1d8
Diffstat (limited to 'src/main/webapp')
-rw-r--r-- | src/main/webapp/WEB-INF/jsp/show_green_release.jsp | 113 | ||||
-rw-r--r-- | src/main/webapp/WEB-INF/web.xml | 10 |
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> |