Trigger Jenkins SCM polling
Want to trigger SCM polling for a certain job? Use
Jenkins.instance.getAllItems( Job.class ).
find { job -> job.fullName == 'p1' }.
each { job ->
job.getSCMTrigger().run()
}
Want to trigger SCM polling for a certain job? Use
Jenkins.instance.getAllItems( Job.class ).
find { job -> job.fullName == 'p1' }.
each { job ->
job.getSCMTrigger().run()
}