2017-04-30 49 views

cevap

2

(boru hatları dahil) tüm Jenkins işlerini çalıştırmak için,

import hudson.model.*; 

// get all jobs 
jobs = Hudson.instance.getAllItems(Job.class); 

// iterate through the jobs 
for (j in jobs) { 
    // first check, if job is buildable 
    if (j instanceof BuildableItem) { 
    // run that job 
    j.scheduleBuild(); 
    } 
} 

ben aradığınız parçası da döngü içinde job değişkeni diyebiliriz scheduleBuild() yöntem olduğunu düşünüyorum: Ben şu kullanın.