Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to create non-configurable instances programmatically. #191

Merged
merged 1 commit into from
Aug 14, 2017

Conversation

Vlatombe
Copy link
Member

@Vlatombe Vlatombe commented Aug 9, 2017

The idea behind this change is to manage configuration of Kubernetes Cloud through other means than the UI, in the context of multiple Jenkins instance infrastructure, and prevent the configuration from being modified when accessing the Manage Jenkins/Configure system page.

@iocanel
Copy link
Contributor

iocanel commented Aug 9, 2017

Can you please add a few words on the motivation behind this?

@carlossg carlossg merged commit 75a1b57 into jenkinsci:master Aug 14, 2017
@marvinthepa
Copy link
Contributor

Is there any documentation on how to use this?

My guess is that you use it by writing to config.xml directly, i.e. when creating a Jenkins docker image (which by coincidence, is exactly what we do here)..

@carlossg
Copy link
Contributor

you can also use the API or a groovy script on startup to create it

@colemickens
Copy link
Contributor

How does one find the API to use from a groovy script that will allow me to programmatically add an instance of NonConfigurableKubernetesCloud?

@Vlatombe Vlatombe deleted the non-configurable-cloud branch March 1, 2018 13:05
@colemickens
Copy link
Contributor

In case anyone else winds up here with a similar question, you do this, roughly: Jenkins.getInstance().clouds.add(new NonConfigurableKubernetesCloud(...)).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants