Subversion Repositories DevTools

Rev

Rev 7082 | Rev 7164 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7082 Rev 7155
Line 316... Line 316...
316
        //  Locate the associated package entry
316
        //  Locate the associated package entry
317
        Package pkg= rippleEngine.mReleaseManager.findPackage(mId, packageCollection);
317
        Package pkg= rippleEngine.mReleaseManager.findPackage(mId, packageCollection);
318
        
318
        
319
        if ( pkg != ReleaseManager.NULL_PACKAGE )
319
        if ( pkg != ReleaseManager.NULL_PACKAGE )
320
        {
320
        {
-
 
321
            // Generate a nice subject line
-
 
322
            String subject;
-
 
323
            if (pkg.mTestBuildInstruction > 0) {
-
 
324
                subject = "TEST BUILD FAILED on package " + pkg.mAlias;
-
 
325
            } else {
-
 
326
                subject = "BUILD FAILURE on package " + pkg.mAlias;
-
 
327
            }
321
 
328
            
322
          // Is there anyone to send an email to
329
          // Is there anyone to send an email to
323
          String owners = pkg.emailInfoNonAntTask(rippleEngine);
330
          String owners = pkg.emailInfoNonAntTask(rippleEngine);
324
          
331
          
325
          if ( owners != null )
332
          if ( owners != null )
326
          {
333
          {
Line 337... Line 344...
337
              rippleEngine.getMailServer(),             // mailServer
344
              rippleEngine.getMailServer(),             // mailServer
338
              rippleEngine.getMailSender(),             // source
345
              rippleEngine.getMailSender(),             // source
339
              owners,                                   // target
346
              owners,                                   // target
340
              null,                                     // cc
347
              null,                                     // cc
341
              null,                                     // bcc
348
              null,                                     // bcc
342
              "BUILD FAILURE on package " + pkg.mName,  // subject
349
              subject,                                  // subject
343
              body,                                     // body
350
              body,                                     // body
344
              null                                      // attachment
351
              null                                      // attachment
345
              );
352
              );
346
            }
353
            }
347
            catch( Exception e )
354
            catch( Exception e )
348
            {
355
            {
349
                mLogger.info("email send exception. {}", e);
356
                mLogger.info("email send exception. {}", e);
350
            }
357
            }
351
          }
358
          }
352
          
359
          
-
 
360
          //    Handle test builds here
-
 
361
          if (pkg.mTestBuildInstruction > 0 )
-
 
362
          {
-
 
363
          
353
          // Having sent the build failure email, complete a test build if applicable.
364
          // Having sent the build failure email, complete a test build if applicable.
354
          // This ensures the test build instruction is not processed indefinitely
365
          // This ensures the test build instruction is not processed indefinitely
355
          // as there is no notion of excluding test builds
366
          // as there is no notion of excluding test builds
-
 
367
 
356
          pkg.completeTestBuild(rippleEngine, false);
368
          // Update the Release Manager Database
-
 
369
          rippleEngine.mReleaseManager.markDaemonInstCompleted(pkg.mTestBuildInstruction);
-
 
370
          
-
 
371
          }
357
        }
372
        }
358
      }
373
      }
359
    }
374
    }
360
    
375
    
361
    /**
376
    /**