Jenkins SCM同步配置插件似乎没有任何效果

时间:2015-01-11 12:26:21

标签: jenkins jenkins-plugins

我想将我的Jenkins中的所有配置文件保存在SCM存储库中。我安装了SCM Configuration Plugin并以这种方式填充了它的属性:

enter image description here

但是我从来没有像the documentation所说的那样弹出窗口,而我正试图改变项目'配置;没有任何东西致力于我的SCM存储库。我错了什么?我还应该考虑另外这个问题呢?

我有Subversion Plug-in 2.5SCM Sync Configuration Plugin 0.0.8。更新其中一个项目后,这是SystemLog:

Mar 31, 2015 11:14:38 AM INFO com.sonyericsson.hudson.plugins.metadata.contributors.JobContributorsController onChange
Submitted to metadata-queue: hudson.model.FreeStyleProject@21973d0b[OMC_Functional_Tests]
Mar 31, 2015 11:14:38 AM WARNING hudson.plugins.scm_sync_configuration.SCMManipulator expectScmRepositoryInitiated
SCM Repository has not yet been initiated !
Mar 31, 2015 11:14:39 AM WARNING hudson.plugins.scm_sync_configuration.SCMManipulator expectScmRepositoryInitiated
SCM Repository has not yet been initiated !
Mar 31, 2015 11:14:39 AM WARNING hudson.plugins.scm_sync_configuration.SCMManipulator expectScmRepositoryInitiated
SCM Repository has not yet been initiated !
Mar 31, 2015 11:14:41 AM INFO hudson.model.AsyncPeriodicWork$1 run
Started PeriodicBackup
Mar 31, 2015 11:14:41 AM WARNING org.jenkinsci.plugins.periodicbackup.PeriodicBackup execute
Cron is not defined.
Mar 31, 2015 11:14:41 AM INFO hudson.model.AsyncPeriodicWork$1 run
Finished PeriodicBackup. 1 ms

我试图验证SCM,因为@lkisac说,但我得到了这个堆栈跟踪:

Passing user name team.j1 and password you entered
Authentication was not acknowledged.
FAILED: svn: E200015: Operation cancelled
org.tmatesoft.svn.core.SVNCancelException: svn: E200015: Operation cancelled
    at hudson.scm.UserProvidedCredential$AuthenticationManagerImpl.checkIfProtocolCompleted(UserProvidedCredential.java:258)
    at hudson.scm.SubversionSCM$DescriptorImpl.postCredential(SubversionSCM.java:2248)
    at hudson.scm.SubversionSCM$DescriptorImpl.doPostCredential(SubversionSCM.java:2192)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:601)
    at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:298)
    at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:161)
    at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:96)
    at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:121)
    at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
    at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:745)
    at org.kohsuke.stapler.Stapler.invoke(Stapler.java:875)
    at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:249)
    at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
    at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:745)
    at org.kohsuke.stapler.Stapler.invoke(Stapler.java:875)
    at org.kohsuke.stapler.Stapler.invoke(Stapler.java:648)
    at org.kohsuke.stapler.Stapler.service(Stapler.java:237)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:96)
    at com.smartcodeltd.jenkinsci.plugin.assetbundler.filters.LessCSS.doFilter(LessCSS.java:46)
    at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:99)
    at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:58)
    at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:99)
    at hudson.plugins.scm_sync_configuration.extensions.ScmSyncConfigurationFilter$1.call(ScmSyncConfigurationFilter.java:46)
    at hudson.plugins.scm_sync_configuration.ScmSyncConfigurationDataProvider.provideRequestDuring(ScmSyncConfigurationDataProvider.java:103)
    at hudson.plugins.scm_sync_configuration.extensions.ScmSyncConfigurationFilter.doFilter(ScmSyncConfigurationFilter.java:42)
    at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:99)
    at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:88)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:48)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
    at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
    at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:46)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:610)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1040)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)

我只是仔细看了the documentation,我看到了这个说明:

enter image description here

似乎我应该降级Subversion插件,这在我使用的Jenkins 1.598中是不可能的!降级詹金斯也可能会影响其他一些插件!有没有人注意到在服务器上自动保存Jenkins配置文件的更好方法?

3 个答案:

答案 0 :(得分:0)

尝试SCM同步配置 0.0.7.3 和Subversion 1.54

任何较新版本的Subversion都无效。

我还测试了最新的SCM同步配置(0.8)和0.0.7.4 - 对系统配置的更新将显示提交消息弹出窗口,但不显示作业配置更新。

我没有在Subversion中输入凭据进行测试,但这也会影响它。因此,如果您尚未通过身份验证,请点击Subversion文本框旁边的帮助(?)图标,然后点击此链接'。

SCM Sync Configuration Subversion help

输入您的存储库URL和身份验证方法。

enter image description here

答案 1 :(得分:0)

使用Jenkins计算机上的浏览器连接到SVN存储库URL。确保您没有看到任何SSL问题(例如过期的证书)。您还可以通过执行以下操作设置日志来跟踪此插件:

  1. Jenkins,管理Jenkins,系统日志,添加新的日志记录器。
  2. 名称:SCM_Sync(或您喜欢的任何名称)
  3. 记录器:hudson.plugins.scm_sync_configuration
  4. 日志级别:全部
  5. 点击“保存”。
  6. 再次尝试连接“您可能需要在网址末尾添加或删除'/'以使SCM Sync再次尝试连接;请查看日志中的其他内容

答案 2 :(得分:0)

我的系统遇到了类似的问题。您可以从存档(最新版本或http://updates.jenkins-ci.org/download/plugins/subversion/旁边)降级Subversion插件subversion.hpi文件。

  1. 将subversion.hpi下载到Jenkins主服务器。
  2. 将主服务器上的subversion.hpi文件安装到 ... Jenkins / war / WEB-INF / plugins /子目录。
  3. 在Web浏览器控制台上,转到Jenkins,Manage Jenkins和 点击"准备关机"选项。
  4. 在浏览器网址上输入http://localhost:8080/restart,其中 "本地主机"是jenkins master的机器名或IP地址 服务器
  5. 点击"是"提示按钮。詹金斯将在重启时重启 机器没有执行构建。
  6. 您现在应该将降级的Subversion插件运行。检查插件列表以进行验证。