public BuildSetTask createBuildSetTask ( BuildConfigurationSet buildConfigurationSet , Map < Integer , BuildConfigurationAudited > buildConfigurationAuditedsMap , User user , BuildOptions buildOptions , Supplier < Integer > buildTaskIdProvider , Set < BuildTask > submittedBuildTasks ) throws CoreException { BuildSetTask buildSetTask = initBuildSetTask ( buildConfigurationSet , user , buildOptions ) ; Set < BuildConfigurationAudited > buildConfigurationAuditeds = new HashSet <> ( ) ; for ( BuildConfiguration buildConfiguration : datastoreAdapter . getBuildConfigurations ( buildConfigurationSet ) ) { BuildConfigurationAudited buildConfigurationAudited = buildConfigurationAuditedsMap . get ( buildConfiguration . getId ( ) ) ; if ( buildConfigurationAudited == null ) { buildConfigurationAudited = datastoreAdapter . getLatestBuildConfigurationAuditedInitializeBCDependencies ( buildConfiguration . getId ( ) ) ; } buildConfigurationAuditeds . add ( buildConfigurationAudited ) ; } // initializeBuildTasksInSet log . debug ( "Initializing BuildTasks In Set for BuildConfigurationAuditeds: {}." , buildConfigurationAuditeds . stream ( ) . map ( bc -> bc . toString ( ) ) . collect ( Collectors . joining ( "; " ) ) ) ; fillBuildTaskSet ( buildSetTask , user , buildTaskIdProvider , buildConfigurationSet . getCurrentProductMilestone ( ) , buildConfigurationAuditeds , submittedBuildTasks , buildOptions ) ; return buildSetTask ; }
Create a BuildSetTask of BuildConfigurations contained in the BuildConfigurationSet .