Starting a multi-pipe pipeline operation from another multi-block pipeline
I have a scenario where, although I have 2 projects (A and B) both configured in Jenkins with multi-unit pipelines jobs, the problem is that Project B depends on project A.
So, I found that several times when I checkout the code in Project A, I also need to build ProjectB when A was built. Now, before I start exploring pipeline builds, I will have work per branch, then run in Jenkins relevant work for Project B for the relevant branch.
What I would like to configure in Jenkinsfile so that when ProjectA / develop runs, it will run a multiprocessing pipeline job for ProjectB and the same branch.
I have:
stage ('Trigger Tenant Builds') {
build job: "ProjectB/${branch}", wait: false
}
But my ProjectA is not working:
ERROR: No parameterized job named ProjectB/develop found
Any ideas?
+3
source to share