I recommend that you create a sample project via the UI and then inspect the resulting XML to see how the XML will look, alternatively look at the setTraits(...) method of SCMNavigator
On 30 August 2017 at 05:19, Stephen B <[email protected]> wrote: > Greetings, > > I set up the GitHub branch source plugin programmatically with a groovy > script so that when Jenkins docker container image is started the github > branch source plugin is already configured (see attachment for details > L52-67). Currently we are using version 2.0.8. We tried to update to > 2.2.3, but had some issues with the plugin working. > > This is the warning message we see for this plugin on the updates page: > > Warning: the new version of this plugin claims to use a different settings > format than the installed version. Jobs using this plugin may need to be > reconfigured, and/or you may not be able to cleanly revert to the prior > version without manually restoring old settings. Consult the plugin release > notes for details. > > > > In version 2.2.3 a lot of the parameters we were using cannot be used. In > fact the source code for the plugin has those deprecated and restricted > since 2.2.0 as well as with a DoNotUse.class. I noticed that we could > create an object and create the traits array list that way, but how would > we pass that along in the xml since the only parameter of the > GitHubScmNavigator is the repoOwner? I couldn’t find any documentation on > how to do this, so figured I would reach out and see if there’s a > recommended way to do this. > > > > Thanks for your time, > > -- > 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/792ef209-1067-42ac-a0b4-aa191b23d06d%40googlegroups. > com > <https://groups.google.com/d/msgid/jenkinsci-users/792ef209-1067-42ac-a0b4-aa191b23d06d%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CA%2BnPnMwvZKpZFdPA8LMj8_0qy5GEKXyGEVau03gsuX2fh%2B4L_A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
