Class BuildManager


  • public class BuildManager
    extends Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static ConcurrentHashMap<String,​io.fabric8.openshift.api.model.Build> buildsWithNoBCList
      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 
      Constructor Description
      BuildManager()  
    • Field Detail

      • buildsWithNoBCList

        protected static final ConcurrentHashMap<String,​io.fabric8.openshift.api.model.Build> buildsWithNoBCList
        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 Detail

      • BuildManager

        public BuildManager()
    • Method Detail

      • 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()