Is it possible to define Build after other projects are built
for Pipeline Multibranch, especially for org. folders like GitHub Organization or Bitbucket Tream/Project?
Example:
properties([pipelineTriggers([upstream(
threshold: hudson.model.Result.SUCCESS,
upstreamProjects: "../multibranch-job/master")])])
Does it work? Does it require absolute or relative path?
Apparently Build after other projects are built
works just fine either with generic Pipeline, Multibranch, or Org. Folders like Bitbucket Team/Project.
My problem was related to the fact that I was referring to job with incorrect path.
An absolute path could be always found out in the upper section of job screen. This is especially useful if name contains special characters which might be replaced by Jenkins.
Thus the properties
step should look:
properties([pipelineTriggers([upstream(
threshold: hudson.model.Result.SUCCESS,
upstreamProjects: "t/multibranch-job-to-be-triggered/feature%2Ftest")])])
Beside absolute path, you can refer to job with relative paths, ex:
another-branch
../another-job/branch
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With