Package io.fabric8.jenkins.openshiftsync
Class BuildManager
java.lang.Object
io.fabric8.jenkins.openshiftsync.BuildManager
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected static final ConcurrentHashMap<String,io.fabric8.openshift.api.model.Build> now that listing interval is 5 minutes (used to be 10 seconds), we have seen timing windows where if the build watch events come before build config watch events when both are created in a simultaneous fashion, there is an up to 5 minute delay before the job run gets kicked off started seeing duplicate builds getting kicked off so quit depending on so moved off of concurrent hash set to concurrent hash map using namepace/name key
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic booleanaddEventToJenkinsJobRun(io.fabric8.openshift.api.model.Build build) static voidstatic voidonInitialBuilds(io.fabric8.openshift.api.model.BuildList buildList) 
- 
Field Details- 
buildsWithNoBCListprotected static final ConcurrentHashMap<String,io.fabric8.openshift.api.model.Build> buildsWithNoBCListnow that listing interval is 5 minutes (used to be 10 seconds), we have seen timing windows where if the build watch events come before build config watch events when both are created in a simultaneous fashion, there is an up to 5 minute delay before the job run gets kicked off started seeing duplicate builds getting kicked off so quit depending on so moved off of concurrent hash set to concurrent hash map using namepace/name key
 
- 
- 
Constructor Details- 
BuildManagerpublic BuildManager()
 
- 
- 
Method Details- 
onInitialBuildspublic static void onInitialBuilds(io.fabric8.openshift.api.model.BuildList buildList) 
- 
addEventToJenkinsJobRunpublic static boolean addEventToJenkinsJobRun(io.fabric8.openshift.api.model.Build build) throws IOException - Throws:
- IOException
 
- 
flushBuildsWithNoBCListpublic static void flushBuildsWithNoBCList()
 
-