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

Plugin bitbucketpullrequestbuilder can not longer get JenkinsLocationConfiguration

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      The bitbucketpullrequestbuilder plugin uses following code to get the Jenkins url:

      {{JenkinsLocationConfiguration globalConfig = new JenkinsLocationConfiguration();}}
      String rootUrl = globalConfig.getUrl();

       

      This no longer works. It should be:

      {{JenkinsLocationConfiguration globalConfig = JenkinsLocationConfiguration.get();}}
      String rootUrl = globalConfig.getUrl();

       

        Attachments

          Activity

          klooster Richard van der Klooster created issue -
          Hide
          mj_blue Mark Jones added a comment -

          raised a bug on the project in github and am raising a pull request to fix this:

          https://github.com/nishio-dens/bitbucket-pullrequest-builder-plugin/issues/155

          Show
          mj_blue Mark Jones added a comment - raised a bug on the project in github and am raising a pull request to fix this: https://github.com/nishio-dens/bitbucket-pullrequest-builder-plugin/issues/155
          klooster Richard van der Klooster made changes -
          Field Original Value New Value
          Description The bitbucketpullrequestbuilder plugin uses following code to get the Jenkins url:

          {{JenkinsLocationConfiguration globalConfig = new JenkinsLocationConfiguration();}}
          {{ String rootUrl = globalConfig.getUrl();}}

           

          This no longer works. It should be:

          {{JenkinsLocationConfiguration globalConfig = JenkinsLocationConfiguration.get();}}
          {{ String rootUrl = globalConfig.getUrl();}}

           
          The bitbucketpullrequestbuilder plugin uses following code to get the Jenkins url:

          {{{{JenkinsLocationConfiguration globalConfig = new JenkinsLocationConfiguration();}}}}
          {{String rootUrl = globalConfig.getUrl();}}

           

          This no longer works. It should be:

          {{{{JenkinsLocationConfiguration globalConfig = JenkinsLocationConfiguration.get();}}}}
          {{String rootUrl = globalConfig.getUrl();}}

           

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            klooster Richard van der Klooster
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: