Class BuildManager

java.lang.Object
io.fabric8.jenkins.openshiftsync.BuildManager

public class BuildManager extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected 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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    addEventToJenkinsJobRun(io.fabric8.openshift.api.model.Build build)
     
    static void
     
    static void
    onInitialBuilds(io.fabric8.openshift.api.model.BuildList buildList)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

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