Jenkins存储插件配置的位置 [英] Where Jenkins stores plugin configuration

查看:1004
本文介绍了Jenkins存储插件配置的位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道Jenkins将每个作业的配置存储在Jobs/的同名目录中.作业配置文件是config.xml

I know that Jenkins stores the configuration for each job within an eponymous directory in jobs/. The job configuration file is config.xml

问题是它在哪里保存插件配置?

question is where does it save Plugins cofiguration?

即我有一些具有常规配置的SCM插件,我想将作业配置复制到其他服务器(并且不想使用专用的插件来这样做,只是寻找配置文件)

i.e I have an some SCM plugin with general configuration, I want to copy the job configuration to other server (and do NOT want to use a dedicated plugin for doing so, simply looking for a configuration file)

推荐答案

在Jenkins主目录中的简单搜索显示了以下.xml文件,其中包含在 Manage Jenkins 中进行的设置>> 全局配置:

A simple search in Jenkins' home directory reveals the following .xml files in my case, which contain the settings made in Manage Jenkins > Global Configuration:

/var/lib/jenkins# ls *.xml
com.smartcodeltd.jenkinsci.plugins.buildmonitor.BuildMonitorView.xml
config.xml
credentials.xml
gerrit-trigger.xml
github-plugin-configuration.xml
hudson.maven.MavenModuleSet.xml
hudson.model.UpdateCenter.xml
hudson.plugins.analysis.core.GlobalSettings.xml
hudson.plugins.ansicolor.AnsiColorBuildWrapper.xml
hudson.plugins.git.GitSCM.xml
hudson.plugins.git.GitTool.xml
hudson.plugins.piwik.PiwikAnalyticsPageDecorator.xml
hudson.plugins.warnings.WarningsPublisher.xml
hudson.scm.CVSSCM.xml
hudson.scm.SubversionSCM.xml
hudson.tasks.Ant.xml
hudson.tasks.Mailer.xml
hudson.tasks.Maven.xml
hudson.tasks.Shell.xml
hudson.triggers.SCMTrigger.xml
javaposse.jobdsl.plugin.ExecuteDslScripts.xml
jenkins.advancedqueue.PriorityConfiguration.xml
jenkins.advancedqueue.PrioritySorterConfiguration.xml
jenkins.model.ArtifactManagerConfiguration.xml
jenkins.model.DownloadSettings.xml
jenkins.model.JenkinsLocationConfiguration.xml
jenkins.mvn.GlobalMavenConfig.xml
jenkins.plugins.slack.SlackNotifier.xml
jenkins.plugins.slack.webhook.GlobalConfig.xml
jenkins.security.QueueItemAuthenticatorConfiguration.xml
nodeMonitors.xml
org.jenkinsci.plugins.gitclient.JGitTool.xml
org.jenkinsci.plugins.github.pullrequest.GitHubPRTrigger.xml
org.jenkinsci.plugins.workflow.flow.FlowExecutionList.xml
org.jenkinsci.plugins.workflow.support.steps.StageStep.xml

您应该也可以在其中找到其他插件的选项.

You should be able to find the other plugin's options also there.

这篇关于Jenkins存储插件配置的位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆