Subversion Repositories DevTools

Rev

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

Rev 906 Rev 908
Line 191... Line 191...
191
                boolean buildErrorOccurred = true;
191
                boolean buildErrorOccurred = true;
192
                // max 50 characters
192
                // max 50 characters
193
                String rootCause = "Error publishing to Release Manager";
193
                String rootCause = "Error publishing to Release Manager";
194
                try
194
                try
195
                {
195
                {
-
 
196
                  if ( mReportingTestBuild.compareTo("0") != 0 )
-
 
197
                  {
-
 
198
                    mLogger.info("run completing test build on " + mReportingPackageName + mReportingPackageExtension);
-
 
199
                    // build failure emails will have been sent
-
 
200
                    // just left to notify the user of the test build completion
-
 
201
                    Package p = rippleEngine.findPackage(mReportingPackageName + mReportingPackageExtension);
-
 
202
                    
-
 
203
                    if (p != ReleaseManager.NULL_PACKAGE)
-
 
204
                    {
-
 
205
                      boolean success = false;
-
 
206
                      
-
 
207
                      if ( reportingFullyPublished != null && reportingFullyPublished.compareTo("yes") == 0 )
-
 
208
                      {
-
 
209
                        success = true;
-
 
210
                      }
-
 
211
                      
-
 
212
                      p.completeTestBuild(rippleEngine.mMailServer, rippleEngine.mMailSender, mReleaseManager, rippleEngine.mBaselineName, success);
-
 
213
                    }
-
 
214
                      
-
 
215
                    // ... and clean up the mess in the archive
-
 
216
                    throw new Exception();                    
-
 
217
                  }
-
 
218
                  
196
                  if ( reportingFullyPublished != null && reportingFullyPublished.compareTo("yes") == 0 )
219
                  if ( reportingFullyPublished != null && reportingFullyPublished.compareTo("yes") == 0 )
197
                  {
220
                  {
198
                    buildErrorOccurred = false;
221
                    buildErrorOccurred = false;
199
                    
222
                    
200
                    if ( reportingNewLabel.length() > 0 )
223
                    if ( reportingNewLabel.length() > 0 )
Line 271... Line 294...
271
                  Integer rtagId = new Integer(mRtagId);
294
                  Integer rtagId = new Integer(mRtagId);
272
  
295
  
273
                  if ( !buildErrorOccurred )
296
                  if ( !buildErrorOccurred )
274
                  {
297
                  {
275
                    mLogger.fatal("an error occurred publishing to ClearCase or Release Manager");
298
                    mLogger.fatal("an error occurred publishing to ClearCase or Release Manager");
-
 
299
                    // force exclusion by default
-
 
300
                    int testBuildInstruction = 0;
-
 
301
                    try
-
 
302
                    {
-
 
303
                      testBuildInstruction = Integer.parseInt( mReportingTestBuild );
-
 
304
                    }
-
 
305
                    catch( NumberFormatException nfe )
-
 
306
                    {
-
 
307
                    }
276
                    mReleaseManager.excludeFromBuild(mReportingPackageVersionId, null, rtagId.toString(), null, rootCause, null, true, false);
308
                    mReleaseManager.excludeFromBuild(mReportingPackageVersionId, null, rtagId.toString(), null, rootCause, null, false, testBuildInstruction);
277
                    throw new Exception("an error occurred publishing to ClearCase or Release Manager");
309
                    throw new Exception("an error occurred publishing to ClearCase or Release Manager");
278
                  }
310
                  }
279
                  
311
                  
280
                  // DEVI 55364
312
                  // DEVI 55364
281
                  // Package has not been built on all configured platforms
313
                  // Package has not been built on all configured platforms
Line 284... Line 316...
284
                  // - slave build machine reboots
316
                  // - slave build machine reboots
285
                  // - slave build machines with a read only file system
317
                  // - slave build machines with a read only file system
286
                  // this root cause is required to keep the end user informed
318
                  // this root cause is required to keep the end user informed
287
                  // max 50 chars
319
                  // max 50 chars
288
                  String cause = "Buildtool env error occurred. Attempt build again";
320
                  String cause = "Buildtool env error occurred. Attempt build again";
-
 
321
                  // force exclusion by default
-
 
322
                  int testBuildInstruction = 0;
-
 
323
                  try
-
 
324
                  {
-
 
325
                    testBuildInstruction = Integer.parseInt( mReportingTestBuild );
-
 
326
                  }
-
 
327
                  catch( NumberFormatException nfe )
-
 
328
                  {
-
 
329
                  }
289
                  mReleaseManager.excludeFromBuild(mReportingPackageVersionId, mReportingPackageVersion, rtagId.toString(), null, mReportingBuildFailureLogFile == null ? cause : null, mReportingBuildFailureLogFile, true, false);
330
                  mReleaseManager.excludeFromBuild(mReportingPackageVersionId, mReportingPackageVersion, rtagId.toString(), null, mReportingBuildFailureLogFile == null ? cause : null, mReportingBuildFailureLogFile, false, testBuildInstruction);
290
                }
331
                }
291
              }
332
              }
292
              
333
              
293
              if ( mUnitTest.compareTo("unit test coordinate slave threads") == 0 )            
334
              if ( mUnitTest.compareTo("unit test coordinate slave threads") == 0 )            
294
              {
335
              {
Line 308... Line 349...
308
            }
349
            }
309
            
350
            
310
            // generate build files
351
            // generate build files
311
            mLogger.warn("run generating build files");
352
            mLogger.warn("run generating build files");
312
            rippleEngine.planRelease();
353
            rippleEngine.planRelease();
-
 
354
            rippleEngine.reportChange();
313
              
355
              
314
            // get the build file from the ripple engine
356
            // get the build file from the ripple engine
315
            rippleEngine.getFirstBuildFileContent(buildFileContent, addendum);
357
            rippleEngine.getFirstBuildFileContent(buildFileContent, addendum);
316
            
358
            
317
            if ( addendum.value.compareTo("non generic") == 0 )
359
            if ( addendum.value.compareTo("non generic") == 0 )