Subversion Repositories DevTools

Rev

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

Rev 896 Rev 898
Line 187... Line 187...
187
                // a dummy build file did not apply
187
                // a dummy build file did not apply
188
                // Publishing is done outside ant by design
188
                // Publishing is done outside ant by design
189
                // The preference is to do all release manager work outside ant
189
                // The preference is to do all release manager work outside ant
190
  
190
  
191
                boolean buildErrorOccurred = true;
191
                boolean buildErrorOccurred = true;
-
 
192
                // max 50 characters
-
 
193
                String rootCause = "Error publishing to Release Manager";
192
                try
194
                try
193
                {
195
                {
194
                  if ( reportingFullyPublished != null && reportingFullyPublished.compareTo("yes") == 0 )
196
                  if ( reportingFullyPublished != null && reportingFullyPublished.compareTo("yes") == 0 )
195
                  {
197
                  {
196
                    buildErrorOccurred = false;
198
                    buildErrorOccurred = false;
Line 231... Line 233...
231
                      mReleaseManager.insertPackageMetrics(rtagId.toString(), mReportingPackageName, mReportingPackageExtension, metrics );
233
                      mReleaseManager.insertPackageMetrics(rtagId.toString(), mReportingPackageName, mReportingPackageExtension, metrics );
232
                    }
234
                    }
233
                    else
235
                    else
234
                    {
236
                    {
235
                      mLogger.info("run package not labelled in ClearCase on " + mReportingPackageName + mReportingPackageVersion);
237
                      mLogger.info("run package not labelled in ClearCase on " + mReportingPackageName + mReportingPackageVersion);
-
 
238
                      // max 50 characters
-
 
239
                      rootCause = "Error publishing to ClearCase";
236
                      throw new Exception();
240
                      throw new Exception();
237
                    }
241
                    }
238
                  }
242
                  }
239
                  else
243
                  else
240
                  {
244
                  {
Line 243... Line 247...
243
                  }
247
                  }
244
                  
248
                  
245
                }
249
                }
246
                catch( Exception e)
250
                catch( Exception e)
247
                {
251
                {
-
 
252
                  // a build error occurred or
248
                  // an error occurred publishing to ClearCase or Release Manager
253
                  // an error occurred publishing to ClearCase or Release Manager
249
                  // take out the archive entry first
254
                  // take out the archive entry first
250
                  String fs = System.getProperty( "file.separator" );
255
                  String fs = System.getProperty( "file.separator" );
251
                  String dpkgArchiveEntry = new String(Package.mGbeDpkg + fs + mReportingPackageName + fs + mReportingPackageVersion);
256
                  String dpkgArchiveEntry = new String(Package.mGbeDpkg + fs + mReportingPackageName + fs + mReportingPackageVersion);
252
                  File dpkgArchiveEntryFile = new File(dpkgArchiveEntry);
257
                  File dpkgArchiveEntryFile = new File(dpkgArchiveEntry);
Line 275... Line 280...
275
                      }
280
                      }
276
                    }
281
                    }
277
                  }
282
                  }
278
                  
283
                  
279
                  Integer rtagId = new Integer(mRtagId);
284
                  Integer rtagId = new Integer(mRtagId);
280
                  // pass root file
-
 
281
                  mReleaseManager.excludeFromBuild(mReportingPackageVersionId, mReportingPackageVersion, rtagId.toString(), null, null, mReportingBuildFailureLogFile);
-
 
282
  
285
  
283
                  if ( !buildErrorOccurred )
286
                  if ( !buildErrorOccurred )
284
                  {
287
                  {
285
                    mLogger.fatal("an error occurred publishing to ClearCase or Release Manager");
288
                    mLogger.fatal("an error occurred publishing to ClearCase or Release Manager");
-
 
289
                    mReleaseManager.excludeFromBuild(mReportingPackageVersionId, null, rtagId.toString(), null, rootCause, null, true);
286
                    throw new Exception("an error occurred publishing to ClearCase or Release Manager");
290
                    throw new Exception("an error occurred publishing to ClearCase or Release Manager");
287
                  }
291
                  }
-
 
292
                  
-
 
293
                  // pass root file
-
 
294
                  mReleaseManager.excludeFromBuild(mReportingPackageVersionId, mReportingPackageVersion, rtagId.toString(), null, null, mReportingBuildFailureLogFile, true);
288
                }
295
                }
289
              }
296
              }
290
              
297
              
291
              if ( mUnitTest.compareTo("unit test coordinate slave threads") == 0 )            
298
              if ( mUnitTest.compareTo("unit test coordinate slave threads") == 0 )            
292
              {
299
              {