Do not send emails when build is cancelled/aborted. Also, ignore aborted/cancelled builds in comparing to previous build.

[?]
Aug 5, 2012, 10:00 PM
4R7OGJEYHBNKPETNWBZAGGM33MZ45DMIPEFFD5DZH32OE2KMOIPQC

Dependencies

  • [2] VPKMUFF3 hydra-build: only send email if the status differs from the previous build
  • [3] RBHHV7P7 * Read logs using logContents function in stead of handling it everywhere separately.
  • [4] HPEG2RHV Merge the BuildResultInfo table into the Builds table
  • [5] FYO6NECE hydra
  • [6] LOMVF2KH do not send email for builds with status 'aborted'
  • [7] KA45EBF5 * Send email if a build fails.
  • [8] FCBQMIF3 hydra-build: Do not send email following an abortion.
  • [*] 7YBYT2LQ

Change contents

  • edit in src/script/hydra-build at line 92
    [2.36]
    [2.36]
    , -not => { buildstatus => { -in => [4, 3]} }
  • replacement in src/script/hydra-build at line 96
    [4.4125][4.0:76](),[4.76][4.9753:9835]()
    # if there is a previous build with same buildstatus, do not send email
    if (defined $prevBuild && ($build->buildstatus == $prevBuild->buildstatus)) {
    [4.4125]
    [3.927]
    # if build is cancelled or aborted, do not send email
    if ($build->buildstatus == 4 || $build->buildstatus == 3) {
  • replacement in src/script/hydra-build at line 100
    [4.100][4.100:101](),[4.101][4.0:91](),[4.91][4.9836:9930]()
    # if buildstatus of this build or the previous one is aborted, do
    # not send email
    if ($build->buildstatus == 3 || (defined $prevBuild && ($prevBuild->buildstatus == 3))) {
    [4.100]
    [3.944]
    # if there is a previous (that is not cancelled or aborted) build with same buildstatus, do not send email
    if (defined $prevBuild && ($build->buildstatus == $prevBuild->buildstatus)) {