[oe-commits] : oestats-client.bbclass: display information URL for failed builds/tasks (Closes: #4475)

OE GIT Trial gittrial at amethyst.openembedded.net
Tue Aug 5 11:25:26 UTC 2008


Module: OE.dev
Branch: master
Commit: bf68d383c37db287ccc4e6258a19e832c6961aa3
URL:    http://gitweb.openembedded.net//OE.dev.git/?a=commit;h=bf68d383c37db287ccc4e6258a19e832c6961aa3

Author:  <jeremy_laine at openembedded.org>
Date:   Tue Aug  5 11:21:56 2008 +0000

oestats-client.bbclass: display information URL for failed builds/tasks (Closes: #4475)

---

 classes/oestats-client.bbclass |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/classes/oestats-client.bbclass b/classes/oestats-client.bbclass
index 968aa42..94fdbf4 100644
--- a/classes/oestats-client.bbclass
+++ b/classes/oestats-client.bbclass
@@ -100,6 +100,8 @@ def oestats_stop(server, d, failures):
 		response = oestats_send(server, "/builds/%s/" % id, {
 			'status': status,
 		})
+		if status == 'Failed':
+			bb.note("oestats: build failed, see http://%s%s" % (server,response))
 	except:
 		bb.note("oestats: error stopping build")
 
@@ -124,7 +126,6 @@ def oestats_task(server, d, task, status):
 		logs = glob.glob("%s/log.%s.*" % (bb.data.getVar('T', d, True), task))
         	if len(logs) > 0:
 			log = logs[0]
-			bb.note("oestats: sending log file : %s" % log)
 			files['log'] = {
 				'filename': 'log.txt',
 				'content': file(log).read(),
@@ -149,6 +150,8 @@ def oestats_task(server, d, task, status):
 	# send report
 	try:
 		response = oestats_send(server, "/tasks/", vars, files)
+		if status == 'Failed':
+			bb.note("oestats: task failed, see http://%s%s" % (server, response))
 	except:
 		bb.note("oestats: error sending task, disabling stats")
 		oestats_setid(d, "")





More information about the Openembedded-commits mailing list