I am able to add a build trigger to a project, but it does not get added to the list of upstream projects.
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 myLib1 does not show any downstream projects on its main page Project myLib2 does not show any upstream projects on its main page What am I missing? There is no setter method for upstream/downstream projects, only a getter. AbstractProject.getUpstreamProjects() AbstractProject.getDownstreamProjects() -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/7ba1b1e7-2571-485b-9b1d-43d19efe0192%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.