Package io.fabric8.jenkins.openshiftsync
Class BuildManager
java.lang.Object
io.fabric8.jenkins.openshiftsync.BuildManager
-
Field Summary
FieldsModifier 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
addEventToJenkinsJobRun
(io.fabric8.openshift.api.model.Build build) static void
static void
onInitialBuilds
(io.fabric8.openshift.api.model.BuildList buildList)
-
Field Details
-
buildsWithNoBCList
protected 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
-
BuildManager
public BuildManager()
-
-
Method Details
-
onInitialBuilds
public static void onInitialBuilds(io.fabric8.openshift.api.model.BuildList buildList) -
addEventToJenkinsJobRun
public static boolean addEventToJenkinsJobRun(io.fabric8.openshift.api.model.Build build) throws IOException - Throws:
IOException
-
flushBuildsWithNoBCList
public static void flushBuildsWithNoBCList()
-