Sverre Moe commented on New Feature JENKINS-27527

Perhaps I am doing it wrong, but a projects upstream and downstream projects does not get set when adding a trigger

import jenkins.triggers.ReverseBuildTrigger
import hudson.model.Result

def jenkinsInstance = jenkins.model.Jenkins.getInstance()
def project = jenkinsInstance.getItem("myLib2")

def trigger = new ReverseBuildTrigger("myLib1", Result.SUCCESS)
project.addTrigger(trigger)
project.getUpstreamProjects().size() == 0
project.getDownstreamProjects().size() == 0
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/d/optout.

Reply via email to