|
||||||||
|
This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators. For more information on JIRA, see: http://www.atlassian.com/software/jira |
||||||||
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

For anyone that is interested, you can use the a system groovy script, provided by the groovy plugin, to simulation this functionality so that you can poll and build projects in any order you specify.. The following imports get you mostly to what is available in the groovy console:
import hudson.*
import hudson.model.*
Some useful methods include:
//get a project by name. returns null if project not found
def project = jenkins.model.Jenkins.instance.getItem(projectName)
//run a project synchronously and get the result
def result = job.scheduleBuild2(0, new hudson.triggers.SCMTrigger.SCMTriggerCause("description here")).get().getResult()
In my case I was using a custom polling script, so I did not investigate how to programmatically do an SCM poll.