Subversion Repositories DevTools

Rev

Rev 910 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 910 Rev 922
Line 357... Line 357...
357
      {
357
      {
358
        // cannot happen, GBE_UNC is checked in BuildDaemon at startup
358
        // cannot happen, GBE_UNC is checked in BuildDaemon at startup
359
        return;
359
        return;
360
      }
360
      }
361
      
361
      
362
      unc += fs + hostname + fs + rtagId + fs + daemon;
362
      String href = hostname + "/" + rtagId + "/" + daemon + "/" + packageAlias + ".log";
-
 
363
      unc += "/" + href;
-
 
364
 
363
      String body = new String();
365
      String body = new String();
364
      unc = unc.replace( '/', '\\' );
-
 
365
      unc += '\\' + packageAlias + ".log";
-
 
366
      String href = "///" + unc;
-
 
367
      href = href.replace( '\\', '/' );
-
 
368
      
-
 
369
      body = "Release: " + release + "<p>" +
366
      body = "Release: " + release + "<p>" +
370
             "Package: " + packageName + "<p>" + 
367
             "Package: " + packageName + "<p>" + 
371
             "Build machine: " + hostname + "<p>" +
368
             "Build machine: " + hostname + "<p>" +
372
             "GBE_MACHTYPE: " + gbeMachtype + "<p>" +
369
             "GBE_MACHTYPE: " + gbeMachtype + "<p>" +
373
             error + "<p>" +
370
             "Error: " + error + "<p>" +
374
             "<a href=\'file:" + href + "\'>" + unc + "</a> ... URL expires in 5 working days time";
371
             "Log File: <a href=\"" + unc + "\">" + href + "</a> ... URL expires in 5 working days time<p><hr>";
375
      
372
      
376
      try
373
      try
377
      {
374
      {
378
        Smtpsend.send( mailServer, // mailServer
375
        Smtpsend.send( mailServer,  // mailServer
379
                       mailSender, // source
376
                       mailSender,  // source
380
                       owners, // target
377
                       owners,      // target
381
                       null, // cc
378
                       null,        // cc
382
                       null, // bcc
379
                       null,        // bcc
383
                       "BUILD FAILURE on package " + packageName, // subject
380
                       "BUILD FAILURE on package " + packageName, // subject
384
                       body, // body
381
                       body,        // body
385
                       null // attachment
382
                       null         // attachment
386
                      );
383
                      );
387
      }
384
      }
388
      catch( Exception e )
385
      catch( Exception e )
389
      {
386
      {
390
        // not fatal
387
        // not fatal