Subversion Repositories DevTools

Rev

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

Rev 7253 Rev 7333
Line 271... Line 271...
271
                                            mReleaseManager.updateBuildDuration(mReporting.packageVersionId, buildDuration);
271
                                            mReleaseManager.updateBuildDuration(mReporting.packageVersionId, buildDuration);
272
                                        }
272
                                        }
273
 
273
 
274
                                        mPhase.setPhase("Update Build Instance for Test");
274
                                        mPhase.setPhase("Update Build Instance for Test");
275
                                        mReleaseManager.updateBuildInstance(mReporting.buildId, 0, mReporting.isFullyPublished ? BuildResult.Complete :BuildResult.BuildError );
275
                                        mReleaseManager.updateBuildInstance(mReporting.buildId, 0, mReporting.isFullyPublished ? BuildResult.Complete :BuildResult.BuildError );
-
 
276
                                        
-
 
277
                                        mPhase.setPhase("Insert BuildInfo for Test");
-
 
278
                                        insertBuildInfo(true);
276
 
279
 
277
                                        // ... and clean up the mess in the archive
280
                                        // ... and clean up the mess in the archive
278
                                        publishError = false;
281
                                        publishError = false;
279
                                        throw new Exception();                    
282
                                        throw new Exception();                    
280
                                    }
283
                                    }
Line 357... Line 360...
357
                                    isr.close();
360
                                    isr.close();
358
                                    din.close();
361
                                    din.close();
359
 
362
 
360
                                    mLogger.warn("run calling mReleaseManager.insertPackageMetrics");                      
363
                                    mLogger.warn("run calling mReleaseManager.insertPackageMetrics");                      
361
                                    mReleaseManager.insertPackageMetrics(mRtagId, mReporting.packageName, mReporting.packageExtension, metrics );
364
                                    mReleaseManager.insertPackageMetrics(mRtagId, mReporting.packageName, mReporting.packageExtension, metrics );
-
 
365
                                    
-
 
366
                                    //  Insert BuildInfo
-
 
367
                                    //      New package PVID has been updated
-
 
368
                                    mPhase.setPhase("Insert BuildInfo");
-
 
369
                                    insertBuildInfo(false);
362
 
370
 
363
                                    //
371
                                    //
364
                                    //    Info reporting
372
                                    //    Info reporting
365
                                    //    Send an email to track build system usage - may be noise
373
                                    //    Send an email to track build system usage - may be noise
366
                                    //
374
                                    //
Line 720... Line 728...
720
            mLogger.error("Exception in clearCurrentPackageBeingBuilt: {}", e.getMessage());
728
            mLogger.error("Exception in clearCurrentPackageBeingBuilt: {}", e.getMessage());
721
        }
729
        }
722
        mPhase.setPhase("Exit Thread");
730
        mPhase.setPhase("Exit Thread");
723
    }
731
    }
724
 
732
 
-
 
733
    /**
-
 
734
     * Locate the <rtagId>abtBuildInfo.properties file and insert data into Release Manager
-
 
735
     * Insert mPlatforms and mBuildPlatforms
-
 
736
     * @param bIsaTestBuild - True. Is a test build
-
 
737
     * @throws Exception 
-
 
738
     */
-
 
739
    private void insertBuildInfo(boolean bIsaTestBuild) throws Exception {
-
 
740
 
-
 
741
        File buildInfoFile = new File (mRtagId + "abtBuildInfo.properties");
-
 
742
        if ( buildInfoFile.exists() )
-
 
743
        {
-
 
744
            BuildInfo bi = new BuildInfo(buildInfoFile);
-
 
745
            mLogger.warn("Can build for: {}", bi.mPlatforms);
-
 
746
            mLogger.warn("Built for: {}", bi.mBuildPlatforms);
-
 
747
            mReleaseManager.insertBuildInfo(bIsaTestBuild, mReporting, bi);
-
 
748
        }
-
 
749
        else
-
 
750
        {
-
 
751
            mLogger.warn("No BuildInfo file. {}", buildInfoFile);
-
 
752
        }
-
 
753
    }
-
 
754
 
725
    /**   Delete a specified version of a package from dpkg_archive
755
    /**   Delete a specified version of a package from dpkg_archive
726
     *    Used during error processing to cleanup packages that did not build correctly
756
     *    Used during error processing to cleanup packages that did not build correctly
727
     *    
757
     *    
728
     *    The package-version is in dpkg_archive. This may be on a remote server
758
     *    The package-version is in dpkg_archive. This may be on a remote server
729
     *    Execute the deletion command on the remote server as it will be a lot faster
759
     *    Execute the deletion command on the remote server as it will be a lot faster