有没有办法使用puppet安装Jenkins插件?

时间:2016-12-15 13:01:43

标签: jenkins puppet gerrit

我试图找到一种使用puppet安装Jenkins插件的方法。我想创建一个Gerrit补丁然后安装它并在需要时恢复补丁。这可以实现吗?

--> Basically want to create a procedure to both upgrade and downgrade plugin
-->Manage Plugin install/upgrade using puppet

1 个答案:

答案 0 :(得分:2)

jenkins模块支持插件:

https://github.com/jenkinsci/puppet-jenkins/blob/master/manifests/plugin.pp

您可以使用@Configuration @EnableWebMvc public class PathDispatchConfig extends WebMvcConfigurerAdapter { @Override public void configurePathMatch(PathMatchConfigurer configurer) { configurer.setUseSuffixPatternMatch(false); configurer.setUseRegisteredSuffixPatternMatch(false); } @Override public void configureContentNegotiation(ContentNegotiationConfigurer configurer) { configurer.favorPathExtension(false); } } ensure => absent

回滚并删除该插件

以下是一个例子:

version => <version