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

alternate browsers do not show up in dropdown after updating the plugin

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: mercurial-plugin
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:

      Description

      When you had a version of the plugin installed before and used the general
      configuration dialog to enter a user defined position for your Mercurial
      installation, in Jobs using Mercurial the new browsers for googlecode and
      bitbucket do not show up in the the dropdown only hgweb is available.

        Attachments

          Activity

          Hide
          mfriedenhagen Mirko Friedenhagen added a comment -

          Dirty fix is marked with a todo tag, so close it right now.

          Show
          mfriedenhagen Mirko Friedenhagen added a comment - Dirty fix is marked with a todo tag, so close it right now.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : mfriedenhagen
          Path:
          trunk/hudson/plugins/mercurial/src/main/java/hudson/plugins/mercurial/MercurialSCM.java
          http://fisheye4.cenqua.com/changelog/hudson/?cs=21970
          Log:
          [FIXED JENKINS-4514] After release 1.325 is out, a better fix will be available.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : mfriedenhagen Path: trunk/hudson/plugins/mercurial/src/main/java/hudson/plugins/mercurial/MercurialSCM.java http://fisheye4.cenqua.com/changelog/hudson/?cs=21970 Log: [FIXED JENKINS-4514] After release 1.325 is out, a better fix will be available.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : mfriedenhagen
          Path:
          trunk/hudson/plugins/mercurial/src/main/java/hudson/plugins/mercurial/MercurialSCM.java
          http://fisheye4.cenqua.com/changelog/hudson/?cs=21950
          Log:
          JENKINS-4514 Dirty fix which overrides getBrowserDescriptors and does not fix the XML-representation but only in memory.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : mfriedenhagen Path: trunk/hudson/plugins/mercurial/src/main/java/hudson/plugins/mercurial/MercurialSCM.java http://fisheye4.cenqua.com/changelog/hudson/?cs=21950 Log: JENKINS-4514 Dirty fix which overrides getBrowserDescriptors and does not fix the XML-representation but only in memory.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in hudson
          User: : mfriedenhagen
          Path:
          trunk/hudson/plugins/mercurial/src/test/java/hudson/plugins/mercurial/MercurialSCMTest.java
          trunk/hudson/plugins/mercurial/src/test/resources/hudson/plugins/mercurial/MercurialSCMTest/testBrowsersAvailableInDropDown.zip
          http://fisheye4.cenqua.com/changelog/hudson/?cs=21945
          Log:
          JENKINS-4514 Implemented testcase with old MercurialSCM.xml which simulates the problem.
          The browser is not shown in the dropdown, however the browser returned from the job is correctly uses the alternative browser.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : mfriedenhagen Path: trunk/hudson/plugins/mercurial/src/test/java/hudson/plugins/mercurial/MercurialSCMTest.java trunk/hudson/plugins/mercurial/src/test/resources/hudson/plugins/mercurial/MercurialSCMTest/testBrowsersAvailableInDropDown.zip http://fisheye4.cenqua.com/changelog/hudson/?cs=21945 Log: JENKINS-4514 Implemented testcase with old MercurialSCM.xml which simulates the problem. The browser is not shown in the dropdown, however the browser returned from the job is correctly uses the alternative browser.
          Hide
          mfriedenhagen Mirko Friedenhagen added a comment -

          In your hudson directory there is a file called
          hudson.plugins.mercurial.MercurialSCM.xml.

          If this file specifies HgWeb as your repositoryBrowser class, the alternate
          classes are not shown. Deleting the file or changing the class to
          hudson.plugins.mercurial.browser.HgBrowser and a restart should do the trick.

          Show
          mfriedenhagen Mirko Friedenhagen added a comment - In your hudson directory there is a file called hudson.plugins.mercurial.MercurialSCM.xml. If this file specifies HgWeb as your repositoryBrowser class, the alternate classes are not shown. Deleting the file or changing the class to hudson.plugins.mercurial.browser.HgBrowser and a restart should do the trick.

            People

            • Assignee:
              mfriedenhagen Mirko Friedenhagen
              Reporter:
              mfriedenhagen Mirko Friedenhagen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: