servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lh...@apache.org
Subject svn commit: r703418 - /servicemix/scripts/builds/webapps/builds/status.jsp
Date Fri, 10 Oct 2008 11:40:21 GMT
Author: lhein
Date: Fri Oct 10 04:40:21 2008
New Revision: 703418

URL: http://svn.apache.org/viewvc?rev=703418&view=rev
Log:
improved recognition of maven build status

Modified:
    servicemix/scripts/builds/webapps/builds/status.jsp

Modified: servicemix/scripts/builds/webapps/builds/status.jsp
URL: http://svn.apache.org/viewvc/servicemix/scripts/builds/webapps/builds/status.jsp?rev=703418&r1=703417&r2=703418&view=diff
==============================================================================
--- servicemix/scripts/builds/webapps/builds/status.jsp (original)
+++ servicemix/scripts/builds/webapps/builds/status.jsp Fri Oct 10 04:40:21 2008
@@ -156,6 +156,8 @@
               searchTerm = "SUCCESS ";
           } else if (lastRes.indexOf("FAILURE ") != -1) {
               searchTerm = "FAILURE ";
+          } else if (lastRes.indexOf("UNKNOWN ") != -1) {
+              searchTerm = "UNKNOWN ";
           } else {
             return lastRes;
           }
@@ -203,7 +205,9 @@
       }
     }
 
-    return "<td class='unknown' width='60%'><a href='logs/" + uri + "' class='unknown'>UNKNOWN</a></td>";
+    String result = "<td class='unknown' width='60%'><a href='logs/" + uri + "'
class='unknown'>UNKNOWN " + durationText + "</a></td>";
+    saveResult(session, f.lastModified(), uri, result);
+    return result;
   }
   
   void saveResult(HttpSession session, long ts, String uri, String result) {



Mime
View raw message