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

CVS plugin: OpenGrok as SCM Browser doesn't work

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • cvs-plugin
    • Jenkins ver. 1.500
      CVS 2.7
      opengrok-0.11.1

      Problem: After clicking on files links in change logs get:
      Error: File not found!
      The requested resource is not available.

      Steps:
      1. Having a couple projects/branches in OpegGrok build an index

      2. Set OpenGrok as SCM browser in two Jenkins' jobs (one per branch)

      3. Launch builds, get changes logs, click on a file reference, get the error.

      The links looks like:

      The correct link should be:

      Additionally, if you click on a file revision you get a broken "diff" link:

      Here is an OpenGrok deployment with many project:
      http://src.opensolaris.org/source/
      easy to get examples how URL should look like

      Thanks

          [JENKINS-16690] CVS plugin: OpenGrok as SCM Browser doesn't work

          Zuzik Zuzikovitch created issue -
          Zuzik Zuzikovitch made changes -
          Description Original: Problem: After clicking on files links in change logs get:
          Error: File not found!
          The requested resource is not available.

          Steps:
          1. Having a couple projects/branches in OpegGrok build an index
          * OpenGrok is available at http://1.2.3.4/source/
          2. Set OpenGrok as SCM browser in two Jenkins' jobs (one per branch)
          * root1: http://1.2.3.4/source/xref/trunk/
          * root2: http://1.2.3.4/source/xref/branchv3/
          3. Launch builds, get changes logs, click on a file reference, get the error.
          The links looks like:
          * first job: http://1.2.3.4/source/xref/trunk/xref/%20/src/exmple.java?r%20=%201.4
          * second job: http://1.2.3.4/source/xref/branchv3/xref/%20/src/exmple.java?r%20=%201.7

          The correct link should be:
          * first job: http://1.2.3.4/source/xref/trunk/src/exmple.java?r=1.4
          * second job: http://1.2.3.4/source/xref/branchv3/src/exmple.java?r=1.4

          Additionally, if you click on a file revision you get a broken "diff" link:
          * http://1.2.3.4/source/xref/branchv3/xref/%20/src/example2.java.diff?r1=1.19&r2=1.19.2.1
          where the correct one is:
          * http://1.2.3.4/source/diff/branchv3/src/example2.java?r2=%2Fbranchv3%2Fsrc%2Fexample2.java%401.19.2.1&r1=%2Fbranchv3%2Fsrc%2Fexample2.java%401.19

          Here is an OpenGrok deployment with many project:
          http://src.opensolaris.org/source/
          easy to get examples how URL should look like

          Thanks
          New: Problem: After clicking on files links in change logs get:
          Error: File not found!
          The requested resource is not available.

          Steps:
          1. Having a couple projects/branches in OpegGrok build an index

          * OpenGrok is available at http://1.2.3.4/source/

          2. Set OpenGrok as SCM browser in two Jenkins' jobs (one per branch)

          * root1: http://1.2.3.4/source/xref/trunk/
          * root2: http://1.2.3.4/source/xref/branchv3/

          3. Launch builds, get changes logs, click on a file reference, get the error.

          The links looks like:
          * first job: http://1.2.3.4/source/xref/trunk/xref/%20/src/exmple.java?r%20=%201.4
          * second job: http://1.2.3.4/source/xref/branchv3/xref/%20/src/exmple.java?r%20=%201.7

          The correct link should be:
          * first job: http://1.2.3.4/source/xref/trunk/src/exmple.java?r=1.4
          * second job: http://1.2.3.4/source/xref/branchv3/src/exmple.java?r=1.4

          Additionally, if you click on a file revision you get a broken "diff" link:
          * http://1.2.3.4/source/xref/branchv3/xref/%20/src/example2.java.diff?r1=1.19&r2=1.19.2.1
          where the correct one is:
          * http://1.2.3.4/source/diff/branchv3/src/example2.java?r2=%2Fbranchv3%2Fsrc%2Fexample2.java%401.19.2.1&r1=%2Fbranchv3%2Fsrc%2Fexample2.java%401.19

          Here is an OpenGrok deployment with many project:
          http://src.opensolaris.org/source/
          easy to get examples how URL should look like

          Thanks
          Zuzik Zuzikovitch made changes -
          Description Original: Problem: After clicking on files links in change logs get:
          Error: File not found!
          The requested resource is not available.

          Steps:
          1. Having a couple projects/branches in OpegGrok build an index

          * OpenGrok is available at http://1.2.3.4/source/

          2. Set OpenGrok as SCM browser in two Jenkins' jobs (one per branch)

          * root1: http://1.2.3.4/source/xref/trunk/
          * root2: http://1.2.3.4/source/xref/branchv3/

          3. Launch builds, get changes logs, click on a file reference, get the error.

          The links looks like:
          * first job: http://1.2.3.4/source/xref/trunk/xref/%20/src/exmple.java?r%20=%201.4
          * second job: http://1.2.3.4/source/xref/branchv3/xref/%20/src/exmple.java?r%20=%201.7

          The correct link should be:
          * first job: http://1.2.3.4/source/xref/trunk/src/exmple.java?r=1.4
          * second job: http://1.2.3.4/source/xref/branchv3/src/exmple.java?r=1.4

          Additionally, if you click on a file revision you get a broken "diff" link:
          * http://1.2.3.4/source/xref/branchv3/xref/%20/src/example2.java.diff?r1=1.19&r2=1.19.2.1
          where the correct one is:
          * http://1.2.3.4/source/diff/branchv3/src/example2.java?r2=%2Fbranchv3%2Fsrc%2Fexample2.java%401.19.2.1&r1=%2Fbranchv3%2Fsrc%2Fexample2.java%401.19

          Here is an OpenGrok deployment with many project:
          http://src.opensolaris.org/source/
          easy to get examples how URL should look like

          Thanks
          New: Problem: After clicking on files links in change logs get:
          Error: File not found!
          The requested resource is not available.

          Steps:
          1. Having a couple projects/branches in OpegGrok build an index

          * OpenGrok is available at http://1.2.3.4/source/

          2. Set OpenGrok as SCM browser in two Jenkins' jobs (one per branch)

          * URL root1: http://1.2.3.4/source/xref/trunk/
          * URL root2: http://1.2.3.4/source/xref/branchv3/

          3. Launch builds, get changes logs, click on a file reference, get the error.

          The links looks like:
          * first job: http://1.2.3.4/source/xref/trunk/xref/%20/src/exmple.java?r%20=%201.4
          * second job: http://1.2.3.4/source/xref/branchv3/xref/%20/src/exmple.java?r%20=%201.7

          The correct link should be:
          * first job: http://1.2.3.4/source/xref/trunk/src/exmple.java?r=1.4
          * second job: http://1.2.3.4/source/xref/branchv3/src/exmple.java?r=1.4

          Additionally, if you click on a file revision you get a broken "diff" link:
          * http://1.2.3.4/source/xref/branchv3/xref/%20/src/example2.java.diff?r1=1.19&r2=1.19.2.1
          where the correct one is:
          * http://1.2.3.4/source/diff/branchv3/src/example2.java?r2=%2Fbranchv3%2Fsrc%2Fexample2.java%401.19.2.1&r1=%2Fbranchv3%2Fsrc%2Fexample2.java%401.19

          Here is an OpenGrok deployment with many project:
          http://src.opensolaris.org/source/
          easy to get examples how URL should look like

          Thanks

          Since I don't have OpenGrok running against CVS, can you confirm if the first job link should be 'trunk' or 'head'?

          To allow all the links to work properly, the URL you define in the repository browser should only be http://1.2.3.4/source/ - the plugin will fill in appropriate branch/tag names (pending the above confirmation) or comparison URLs.

          Michael Clarke added a comment - Since I don't have OpenGrok running against CVS, can you confirm if the first job link should be 'trunk' or 'head'? To allow all the links to work properly, the URL you define in the repository browser should only be http://1.2.3.4/source/ - the plugin will fill in appropriate branch/tag names (pending the above confirmation) or comparison URLs.

          I manually named the first OpenGrok's source "trunk" (it's just a directory).
          It could be easily renamed as "head", if you want to use "head" when branch/tag name is not set.

          Zuzik Zuzikovitch added a comment - I manually named the first OpenGrok's source "trunk" (it's just a directory). It could be easily renamed as "head", if you want to use "head" when branch/tag name is not set.
          Michael Clarke made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Michael Clarke made changes -
          Assignee New: Michael Clarke [ mc1arke ]

          Code changed in jenkins
          User: Michael Clarke
          Path:
          src/main/java/hudson/scm/browsers/OpenGrok.java
          src/test/java/hudson/scm/browsers/OpenGrokTest.java
          http://jenkins-ci.org/commit/cvs-plugin/2732db70ca119f748da9c9304dee85df862c66fe
          Log:
          [FIXED JENKINS-16690] Fix OpenGrok browser support


          You received this message because you are subscribed to the Google Groups "Jenkins Commits" group.
          To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com.
          For more options, visit https://groups.google.com/groups/opt_out.

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Michael Clarke Path: src/main/java/hudson/scm/browsers/OpenGrok.java src/test/java/hudson/scm/browsers/OpenGrokTest.java http://jenkins-ci.org/commit/cvs-plugin/2732db70ca119f748da9c9304dee85df862c66fe Log: [FIXED JENKINS-16690] Fix OpenGrok browser support – You received this message because you are subscribed to the Google Groups "Jenkins Commits" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-commits+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out .
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 147514 ] New: JNJira + In-Review [ 192454 ]

            mc1arke Michael Clarke
            tempor Zuzik Zuzikovitch
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: