Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-110

svn infoに--xmlオプションがありません

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core
    • None
    • Platform: PC, OS: Linux

      日本語で失礼します。

      issue 77から"svn info"コマンドに"--xml"を付けるようになりましたが、こちらで使っ
      ているSubversion v1.2.3(r15833)では、"--xml"オプションが存在しません。

      Hudson v1.46のログは以下の通りです。
      [trunk] $ svn update -q --non-interactive
      $ svn info --xml trunk
      サブコマンド 'info' にはオプション '--xml' をつけられません。
      使用方法を知りたいときは 'svn help info' と打ってください。
      ERROR: revision check failed
      java.io.IOException: revision check failed
      at hudson.scm.SubversionSCM$SvnInfo.parse(SubversionSCM.java:219)
      at hudson.scm.SubversionSCM.buildRevisionMap(SubversionSCM.java:264)
      at hudson.scm.SubversionSCM.checkout(SubversionSCM.java:166)
      at hudson.model.Project.checkout(Project.java:261)
      at hudson.model.Build$1.run(Build.java:134)
      at hudson.model.Run.run(Run.java:460)
      at hudson.model.Build.run(Build.java:116)
      at hudson.model.Executor.run(Executor.java:54)

      こちらが使用しているSubversionのバージョンがHudsonが前提とするバージョンと不一致
      なのだと思いますが、一応ご報告まで。

      https://hudson.dev.java.net/source/browse/hudson/hudson/src/hudson/scm/SubversionSCM.java?r1=1.15&r2=1.16

          [JENKINS-110] svn infoに--xmlオプションがありません

          For other people who don't read Japanese, the issue was that on some versions of
          subversion, (Kohsuke: I believe <1.3.0), "svn info" doesn't have --xml option,
          so Hudson dies when it tries to update the workspace.

          Notice that Hudson is correctly coping error message from Subversion, which will
          say what amounts to "unrecognized option --xml".

          Hudson should check the version of the svn command and report an friendly error
          when its version doesn't match what it's expecting.

          Kohsuke Kawaguchi added a comment - For other people who don't read Japanese, the issue was that on some versions of subversion, (Kohsuke: I believe <1.3.0), "svn info" doesn't have --xml option, so Hudson dies when it tries to update the workspace. Notice that Hudson is correctly coping error message from Subversion, which will say what amounts to "unrecognized option --xml". Hudson should check the version of the svn command and report an friendly error when its version doesn't match what it's expecting.

          ありがとうございます。バージョンをチェックして親切なエラーメッセージを出すように
          修正しておきます。

          「ツールの出力を機械でパースしやすいようにすること」がSVNのゴールの一つだと思っ
          たのですが、その割にはxml出力が1.3.0からとは実にへぼい...。

          Kohsuke Kawaguchi added a comment - ありがとうございます。バージョンをチェックして親切なエラーメッセージを出すように 修正しておきます。 「ツールの出力を機械でパースしやすいようにすること」がSVNのゴールの一つだと思っ たのですが、その割にはxml出力が1.3.0からとは実にへぼい...。

          As long as we are at it, the configuration screen should show if the specified
          svn/cvs exists, and has the right version.

          Kohsuke Kawaguchi added a comment - As long as we are at it, the configuration screen should show if the specified svn/cvs exists, and has the right version.

          Fixed for 1.50.

          Kohsuke Kawaguchi added a comment - Fixed for 1.50.

          Starting Hudson 1.74, it no longer relies on an external svn executable, so it's
          no longer affected by the version of the svn executable.

          Kohsuke Kawaguchi added a comment - Starting Hudson 1.74, it no longer relies on an external svn executable, so it's no longer affected by the version of the svn executable.

            Unassigned Unassigned
            masanobuimai masanobuimai
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: