hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject svn commit: r1554885 - /hadoop/nightly/jenkinsPrecommitAdmin.py
Date Thu, 02 Jan 2014 19:50:02 GMT
Author: todd
Date: Thu Jan  2 19:50:02 2014
New Revision: 1554885

URL: http://svn.apache.org/r1554885
Log:
HADOOP-10199. Precommit Admin build is not running because no previous successful build is
available. Contributed by Brock Noland.

Modified:
    hadoop/nightly/jenkinsPrecommitAdmin.py

Modified: hadoop/nightly/jenkinsPrecommitAdmin.py
URL: http://svn.apache.org/viewvc/hadoop/nightly/jenkinsPrecommitAdmin.py?rev=1554885&r1=1554884&r2=1554885&view=diff
==============================================================================
--- hadoop/nightly/jenkinsPrecommitAdmin.py (original)
+++ hadoop/nightly/jenkinsPrecommitAdmin.py Thu Jan  2 19:50:02 2014
@@ -95,7 +95,12 @@ if __name__ == '__main__':
   tempFile = NamedTemporaryFile(delete=False)
   try:
     jobLogHistory = httpGet(options.jenkinsUrl + \
-      "/job/PreCommit-Admin/lastSuccessfulBuild/artifact/patch_tested.txt").strip().split("\n")
+      "/job/PreCommit-Admin/lastSuccessfulBuild/artifact/patch_tested.txt", True)
+    # if we don't have a successful build available try the last build
+    if not jobLogHistory:
+      jobLogHistory = httpGet(options.jenkinsUrl + \
+        "/job/PreCommit-Admin/lastBuild/artifact/patch_tested.txt")
+    jobLogHistory = jobLogHistory.strip().split("\n")
     if "TESTED ISSUES" not in jobLogHistory[0]:
       print "Downloaded patch_tested.txt control file may be corrupted. Failing."
       sys.exit(1)



Mime
View raw message