jenking 无法从 github 签出
jenking unable to check out from github
我正在尝试在 Jenkins 中创建工作,该工作将从 github 结帐。这样做时我遇到了以下异常。下面是我在 'source code management' > Repository URL 选项卡 'https://github.com/javahometech/my-app.git'
中配置的 url
任何建议都会有所帮助。
<code>
[WS-CLEANUP] Done
Checking out a fresh workspace because there's no workspace at C:\Program Files (x86)\Jenkins\workspace\gitdemo
Cleaning local Directory .
Checking out https://github.com/efsavage/hello-world-war.git at revision '2020-05-24T02:29:22.302 +0530' --quiet
ERROR: Failed to check out https://github.com/efsavage/hello-world-war.git
org.tmatesoft.svn.core.SVNException: svn: E200007: Server does not support date-based operations
svn: E200007: The requested report is unknown.
svn: E175002: REPORT of '/efsavage/hello-world-war.git/!svn/vcc/default': 400 Bad Request (https://github.com)
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:112)
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:96)
at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getDatedRevision(DAVRepository.java:196)
at org.tmatesoft.svn.core.internal.wc16.SVNBasicDelegate.getRevisionNumber(SVNBasicDelegate.java:475)
at org.tmatesoft.svn.core.internal.wc16.SVNBasicDelegate.getLocations(SVNBasicDelegate.java:838)
at org.tmatesoft.svn.core.internal.wc16.SVNBasicDelegate.createRepository(SVNBasicDelegate.java:527)
at org.tmatesoft.svn.core.internal.wc16.SVNUpdateClient16.doCheckout(SVNUpdateClient16.java:875)
at org.tmatesoft.svn.core.internal.wc2.old.SvnOldCheckout.run(SvnOldCheckout.java:66)
at org.tmatesoft.svn.core.internal.wc2.old.SvnOldCheckout.run(SvnOldCheckout.java:18)
at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:927)
at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:857)
at hudson.scm.SCM.checkout(SCM.java:505)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1205)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
at hudson.model.Run.execute(Run.java:1853)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:427)
org.tmatesoft.svn.core.SVNException: svn: E200007: Server does not support date-based operations
svn: E200007: The requested report is unknown.
svn: E175002: REPORT of '/efsavage/hello-world-war.git/!svn/vcc/default': 400 Bad Request (https://github.com)
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:112)
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:96)
at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getDatedRevision(DAVRepository.java:196)
at org.tmatesoft.svn.core.internal.wc16.SVNBasicDelegate.getRevisionNumber(SVNBasicDelegate.java:475)
at org.tmatesoft.svn.core.internal.wc16.SVNBasicDelegate.getLocations(SVNBasicDelegate.java:838)
at org.tmatesoft.svn.core.internal.wc16.SVNBasicDelegate.createRepository(SVNBasicDelegate.java:527)
at org.tmatesoft.svn.core.internal.wc16.SVNUpdateClient16.doCheckout(SVNUpdateClient16.java:875)
at org.tmatesoft.svn.core.internal.wc2.old.SvnOldCheckout.run(SvnOldCheckout.java:66)
at org.tmatesoft.svn.core.internal.wc2.old.SvnOldCheckout.run(SvnOldCheckout.java:18)
at org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner.run(SvnOperationRunner.java:21)
at org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:1239)
at org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:294)
at hudson.scm.subversion.CheckoutUpdater$SubversionUpdateTask.perform(CheckoutUpdater.java:130)
Caused: java.io.IOException: Failed to check out https://github.com/efsavage/hello-world-war.git
at hudson.scm.subversion.CheckoutUpdater$SubversionUpdateTask.perform(CheckoutUpdater.java:141)
at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:168)
at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:176)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:427)
Finished: FAILURE</code>
您遇到的问题是您使用的 Jenkins 插件试图使用基于日期的格式来指定 Subversion 修订版,而 GitHub 不支持这些。 GitHub 使用自己的 Subversion 连接 Git 桥接器,并且未实现基于日期的操作,因为 Git 提交不需要单调递增的时间戳。因此,不可能在所有情况下都决定时间戳应指向哪个版本。
您可以将此存储库作为 Git 存储库检出,它可能会正常工作。或者,您可以尝试使用不使用基于日期格式的其他 Subversion 插件(如果存在的话)。
我正在尝试在 Jenkins 中创建工作,该工作将从 github 结帐。这样做时我遇到了以下异常。下面是我在 'source code management' > Repository URL 选项卡 'https://github.com/javahometech/my-app.git'
中配置的 url任何建议都会有所帮助。
<code>
[WS-CLEANUP] Done
Checking out a fresh workspace because there's no workspace at C:\Program Files (x86)\Jenkins\workspace\gitdemo
Cleaning local Directory .
Checking out https://github.com/efsavage/hello-world-war.git at revision '2020-05-24T02:29:22.302 +0530' --quiet
ERROR: Failed to check out https://github.com/efsavage/hello-world-war.git
org.tmatesoft.svn.core.SVNException: svn: E200007: Server does not support date-based operations
svn: E200007: The requested report is unknown.
svn: E175002: REPORT of '/efsavage/hello-world-war.git/!svn/vcc/default': 400 Bad Request (https://github.com)
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:112)
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:96)
at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getDatedRevision(DAVRepository.java:196)
at org.tmatesoft.svn.core.internal.wc16.SVNBasicDelegate.getRevisionNumber(SVNBasicDelegate.java:475)
at org.tmatesoft.svn.core.internal.wc16.SVNBasicDelegate.getLocations(SVNBasicDelegate.java:838)
at org.tmatesoft.svn.core.internal.wc16.SVNBasicDelegate.createRepository(SVNBasicDelegate.java:527)
at org.tmatesoft.svn.core.internal.wc16.SVNUpdateClient16.doCheckout(SVNUpdateClient16.java:875)
at org.tmatesoft.svn.core.internal.wc2.old.SvnOldCheckout.run(SvnOldCheckout.java:66)
at org.tmatesoft.svn.core.internal.wc2.old.SvnOldCheckout.run(SvnOldCheckout.java:18)
at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:927)
at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:857)
at hudson.scm.SCM.checkout(SCM.java:505)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1205)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499)
at hudson.model.Run.execute(Run.java:1853)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:427)
org.tmatesoft.svn.core.SVNException: svn: E200007: Server does not support date-based operations
svn: E200007: The requested report is unknown.
svn: E175002: REPORT of '/efsavage/hello-world-war.git/!svn/vcc/default': 400 Bad Request (https://github.com)
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:112)
at org.tmatesoft.svn.core.internal.wc.SVNErrorManager.error(SVNErrorManager.java:96)
at org.tmatesoft.svn.core.internal.io.dav.DAVRepository.getDatedRevision(DAVRepository.java:196)
at org.tmatesoft.svn.core.internal.wc16.SVNBasicDelegate.getRevisionNumber(SVNBasicDelegate.java:475)
at org.tmatesoft.svn.core.internal.wc16.SVNBasicDelegate.getLocations(SVNBasicDelegate.java:838)
at org.tmatesoft.svn.core.internal.wc16.SVNBasicDelegate.createRepository(SVNBasicDelegate.java:527)
at org.tmatesoft.svn.core.internal.wc16.SVNUpdateClient16.doCheckout(SVNUpdateClient16.java:875)
at org.tmatesoft.svn.core.internal.wc2.old.SvnOldCheckout.run(SvnOldCheckout.java:66)
at org.tmatesoft.svn.core.internal.wc2.old.SvnOldCheckout.run(SvnOldCheckout.java:18)
at org.tmatesoft.svn.core.internal.wc2.SvnOperationRunner.run(SvnOperationRunner.java:21)
at org.tmatesoft.svn.core.wc2.SvnOperationFactory.run(SvnOperationFactory.java:1239)
at org.tmatesoft.svn.core.wc2.SvnOperation.run(SvnOperation.java:294)
at hudson.scm.subversion.CheckoutUpdater$SubversionUpdateTask.perform(CheckoutUpdater.java:130)
Caused: java.io.IOException: Failed to check out https://github.com/efsavage/hello-world-war.git
at hudson.scm.subversion.CheckoutUpdater$SubversionUpdateTask.perform(CheckoutUpdater.java:141)
at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:168)
at hudson.scm.subversion.WorkspaceUpdater$UpdateTask.delegateTo(WorkspaceUpdater.java:176)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:427)
Finished: FAILURE</code>
您遇到的问题是您使用的 Jenkins 插件试图使用基于日期的格式来指定 Subversion 修订版,而 GitHub 不支持这些。 GitHub 使用自己的 Subversion 连接 Git 桥接器,并且未实现基于日期的操作,因为 Git 提交不需要单调递增的时间戳。因此,不可能在所有情况下都决定时间戳应指向哪个版本。
您可以将此存储库作为 Git 存储库检出,它可能会正常工作。或者,您可以尝试使用不使用基于日期格式的其他 Subversion 插件(如果存在的话)。