Jenkins Version: Jenkins 2.401.3
Hello, My upstream build trigger works with below statement in my downstream JenkinsFile.
upstream(upstreamProjects: “MyUpstreamProject”, threshold: hudson.model.Result.SUCCESS)
Build triggered for all the branches, though I want to run the downstream project only for the main branch. Tried specifying the branch as
upstream(upstreamProjects: “MyUpstreamProject/main”, threshold: hudson.model.Result.SUCCESS)
upstream(upstreamProjects: “MyUpstreamProject/refs
%2Fremotes%2Forigin%2Fmain”, threshold: hudson.model.Result.SUCCESS)
But both options did not work, any suggestions?