Search code examples
jenkinsjenkins-pipelinejenkins-pluginsjenkins-cli

Best Jenkins Plugin for Multiple Dependency Build


could you suggest best jenkins plugin to manage multiple level and complex dependency build?

similar to diamond

  1. many build starts in parallel
  2. downstream job will have to wait for two or more upstream job to finish before it triggers. e.g C job should wait for both A and B to complete and with build success

Solution

  • Edit:


    Seems like Pipeline plugin is the one that will be officially supported and developed by CloudBees.

    Original Answer:


    IMHO The easiest to start with is: Build Flow Plugin

    From the plugin Wiki:

    parallel (
        // job 1, 2 and 3 will be scheduled in parallel.
        { build("Job1") },
        { build("Job2") },
        { build("Job3") }
    )
    
    if (params["PARAM1"] == "BOO"){
        println "BUILDING OPTIONAL JOB4"
    
        // job4 will be triggered after jobs 1, 2 and 3 complete and if condition is met
        build("Job4")
    }
    


    Additional plugins to check would be: