我有一个受盐配置管理的詹金斯系统。插件及其版本通过salt管理。
但是,作业只是按原样存储的config.xml。
我的问题是:作业中每个插件提到的版本号有多重要config.xml
?
例如:以下是作业config.xml
文件之一的摘要。
<buildWrappers>
<hudson.plugins.ansicolor.AnsiColorBuildWrapper plugin="[email protected]">
<colorMapName>xterm</colorMapName>
</hudson.plugins.ansicolor.AnsiColorBuildWrapper>
</buildWrappers>
在此示例中,它说ansicolor
插件是version 0.4.2
。
如果我实际上将Jenkins上的插件更新为版本,0.7.2
而我却不更新作业,该config.xml
怎么办?
问:版本不同步是否重要?
问:如果我config.xml
完全删除该版本,该怎么办?如下所示:
<buildWrappers>
<hudson.plugins.ansicolor.AnsiColorBuildWrapper plugin="ansicolor">
<colorMapName>xterm</colorMapName>
</hudson.plugins.ansicolor.AnsiColorBuildWrapper>
</buildWrappers>
进行上述操作会有什么效果?
您不需要手动更新作业的配置文件。作业只会在下一次运行时为您完成。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句