Created
July 12, 2013 18:24
-
-
Save daspilker/5986647 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def mavenSettingsConfigProvider = jenkins.getExtensionList("org.jenkinsci.plugins.configfiles.maven.MavenSettingsConfig\$MavenSettingsConfigProvider")[0] | |
def configClass = mavenSettingsConfigProvider.class.classLoader.loadClass("org.jenkinsci.lib.configprovider.model.Config") | |
def configClassConstructor = configClass.getConstructor(String.class, String.class, String.class, String.class) | |
mavenSettingsConfigProvider.save(configClassConstructor.newInstance(...)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment