private void extractJobDefinitionsFromStageDefinitions(List<StageDefinition> stageDefinitions,List<JobDefinition> jobDefinitions){
  for (  StageDefinition stageDefinition : stageDefinitions) {
    List<JobDefinition> jobDefinitionsList=stageDefinition.getJobDefinitions();
    jobDefinitions.addAll(jobDefinitionsList);
  }
}

private void extractJobDefinitionsFromStageDefinitions ( List < StageDefinition > stageDefinitions , List < JobDefinition > jobDefinitions ) { for ( StageDefinition stageDefinition : stageDefinitions ) { List < JobDefinition > jobDefinitionsList = stageDefinition . getJobDefinitions ( ) ; jobDefinitions . addAll ( jobDefinitionsList ) ; } }
method void for extracting jobdefinitions from pipelinedefinition provided . fills in a provided list .
