Hi Ivan, Can you please little bit describe it. Hence I would like to try out this activity?
Please let me know your difficulties. Thanks, Ashish On 23-Oct-2014 3:49 PM, "Ivan Kanis" <[email protected]> wrote: > Hi Mark and Kanstantsin, > > Mark, the simple approach you give won't work when tracking multiple > branches. > > Next we have tried the plugin you suggested. we was disappointed that it > didn't fill the RevisionParameterAction rpa class. If the code exists it > must be settable somehow. > > We then tried Kanstantsin's suggestion and it didn't work either. > > We will keep looking on our end. > > Thanks for the suggestions. If you have more ideas they are most > welcome. > > Ivan > > > October, 21 at 11:46 Kanstantsin Shautsou wrote: > > > Have you tried use "Input String parameter" and set in branches this $ > > {variable}? > > > > October, 21 at 14:03 Mark Waite wrote: > > > I defined a parameterized job (freestyle job, then checked the box for > > "This build is parameterized") and assigned a parameter "branch" with > > a default value "master". > > > > In the "Branches to build" field, I placed the text "${branch}". The > > job then built the 2.2.x branch when I ran the job with a value of > > 2.2.x. > > > > I believe there is also a git parameters plugin which may be able to > > present a pick list of allowed values, instead of the free form text > > that I had to use. > > We wrote: > > > We are trying to specify a git branch on a parameterized build. > > > > It seems there are options for CVS and Subversion but not for git. > > > > However when we are debugging the git plugin there seems to be support > for > > it. In the function determineRevisionToBuild there is the following > > code: > > > > // parameter forcing the commit ID to build > > if (candidates.isEmpty() ) { > > final RevisionParameterAction rpa = > build.getAction(RevisionParameterAction.class); > > if (rpa != null) { > > candidates = Collections.singleton(rpa.toRevision(git)); > > } > > } > > > > We can not find a way to set RevisionParameterAction. > > > > Have we missed something obvious? > > -- > National compulsory insurance for all classes for all purposes from > the cradle to the grave. > -- Winston Churchill > > -- > You received this message because you are subscribed to the Google Groups > "Jenkins Developers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
