I would to like to create a logical Groovy script which in accord with some 
conditions trigger build  another project found by job name

def build = manager.build;

if(manager.build.getResult() == Result.SUCCESS){
   nivel = build.getBuildVariables().get("nivel");

   if(matcher != null && nivel == "completo"){
      //Here I would to get a Job by name
      //And build the job name
   }          
}


-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/cce51146-d59e-49bd-b23c-7b769d50f99d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to