jenkins脚本构建所有job

groovy:

joblist = hudson.model.Hudson.instance.items.findAll{job -> job.isBuildable()}  
 
startServer = "admin computer"
startNote   = "bulk start"
cause = new hudson.model.Cause.RemoteCause(startServer, startNote)
joblist.each{run -> run.scheduleBuild(cause)}