我试图找到一种使用puppet安装Jenkins插件的方法。我想创建一个Gerrit补丁然后安装它并在需要时恢复补丁。这可以实现吗?
--> Basically want to create a procedure to both upgrade and downgrade plugin
-->Manage Plugin install/upgrade using puppet
答案 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