Since the multibranch pipeline job creates sub-jobs for each branch, there is no place to set the options for those generated jobs except the Jenkinsfile.
Jenkins creates the sub-jobs when the multibranch pipeline job runs (on its schedule or whatever as configured). It starts any new ones building right away and the properties step at the top of the Jenkins file will then set the options on the generated job. If you change the Jenkinsfile properties step to have different options, it will only apply after the sub-job builds once. This applies to each branch's sub-job independently. You can view some of the options that the properties step can set by clicking "View Configuration" on the sub-job for a particular branch. But there are many more things that get set. If you go to this page https://jenkins.io/doc/pipeline/steps/workflow-multibranch/ but, unless you are a better puzzle solver than me, you will be unable to read the list of optional things you can put in that list that serves as the single parameter to the pipeline step. Its huge. When the properties step runs, it also clears away any existing properties on the sub-job before setting the ones specified in the list. Not all of the things it clears are visible on that "View Configuration" page. On Fri, Jun 23, 2017 at 8:49 PM, ajith arthur <[email protected]> wrote: > Hi Guys, > > > > I have a Jenkins multibranch pipeline job, which always configure build > without parameter at branch initialization, but I need to configure the > branches as build with parameter. > > > > We can use *properties* to configure the parameters in a Jenkinsfile, but > my question is how to configure parameterized option in Jenkins multibranch > pipeline project from website, not from Jenkinsfile? > > > > Please refer the below report for further details. > > > > https://issues.jenkins-ci.org/browse/JENKINS-45102 > > > > Regards, > > Ajith R > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/jenkinsci-users/7432e9e5-a3c1-4418-8141-4609cd7dfa6b%40googlegroups. > com > <https://groups.google.com/d/msgid/jenkinsci-users/7432e9e5-a3c1-4418-8141-4609cd7dfa6b%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- -- Lee Meador Sent from gmail. My real email address is lee AT leemeador.com -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAA4vtDSsVswxpaaJbM%3DgKs6B21q_nUpMSsqb3oWQHOogXd_80g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
