On 08/05/2014 12:10 PM, Tom Rini wrote: > On Tue, Aug 05, 2014 at 12:01:33PM -0700, York Sun wrote: >> On 08/05/2014 11:59 AM, Simon Glass wrote: >>> Hi York, >>> >>> On 5 August 2014 12:55, York Sun <york...@freescale.com> wrote: >>>> On 08/05/2014 11:52 AM, Simon Glass wrote: >>>>>>> >>>>>>> BTW where does this information get published? >>>>>>> >>>>>> >>>>>> When we use gerrit and Jenkins, the build log is stored in Jenkins log, >>>>>> and >>>>>> emails were sent with the failure log. >>>>> >>>>> OK, I don't think I've send such an email. Do I have to do anything to >>>>> get them to come to me? >>>>> >>>> The emails were sent from Jenkins, by my script collecting information >>>> from .ERR >>>> files. >>>> >>>> Maybe I didn't understand your question. What do you mean "where does this >>>> information get published"? >>> >>> I just mean that I don't think I have received an email yet, and don't >>> know about the service, so am wondering how to get an email. >>> >> >> Simon, >> >> Sorry I misled you. The emails are sent by my scripts under Jenkins (A >> tool, see http://jenkins-ci.org/). It is not within u-boot. > > Would you be able to post your jobs / scripts somewhere? I've toyed > with a personal setup and I know Marek has run one before as well. > Thanks! > Tom,
My script is long and messy. This is the part sending emails. if ls LOG/*.ERR &>/dev/null; then error_msg="'Build failed. Log was sent to $GERRIT_PATCHSET_UPLOADER_EMAIL.'" ssh gerrit.hostname.masked gerrit review --message $error_msg $GERRIT_PATCHSET_REVISION /bin/mail -s "Build failed $GERRIT_CHANGE_URL" $GERRIT_PATCHSET_UPLOADER_EMAIL -c $admin_email < build.result exit 1 else echo "Passed" exit 0 fi York _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot