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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • mercurial-plugin
    • None
    • Platform: All, OS: All

    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

          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.

          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.

          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.

          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.

          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.

          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.

          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.

          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.

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

          mfriedenhagen Mirko Friedenhagen added a comment - Dirty fix is marked with a todo tag, so close it right now.

          People

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

            Dates

              Created:
              Updated:
              Resolved: