[workflow-plugin] How to pass parameters to a Workflow: Multibranch subjobs?

108 views
Skip to first unread message

may...@gmail.com

unread,
Dec 7, 2015, 2:07:28 PM12/7/15
to Jenkins Users
Hi!

Say, I have a Git repo that contains a Jenkinsfile. I created a Workflow Multibranch project that is point to that Git repo. It perfectly finds both my branches with different Jenkinsfiles - that's good.

Now imagine I have two different Jenkins-based processes i.e. some automatic CI and some manually triggered Pull Request validation established for my codebase. I want to create two Multibranch projects, one for each of them. The problem is that there is only one Jenkinsfile per repo. I can hack this by analyzing the Jenkins job name within the Jenkinsfile but that's ugly.
What is correct way to do what I want?

I saw there are "properties" for sub jobs, but there I can see only
"
Discard old builds
Throttle builds
Untrusted
"
that don't help much.

Jenkins: 1.639
Workflow (all):1.11


Thanks,
Nick
Reply all
Reply to author
Forward
0 new messages