Issue with GitHub branch source plugin

22 views
Skip to first unread message

Stephen B

unread,
Aug 30, 2017, 8:19:24 AM8/30/17
to Jenkins Users

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,

script.groovy.txt

Stephen Connolly

unread,
Aug 30, 2017, 8:30:43 AM8/30/17
to jenkins...@googlegroups.com
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

--
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 jenkinsci-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/792ef209-1067-42ac-a0b4-aa191b23d06d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages