java.lang.Exception: Bitbucket build notifier support only repositories hosted in bitbucket.org

Jenkins JIRA | Jean-Paul Delimat | 8 months ago
  1. 0

    On some servers the outgoing traffic on port 22 is blocked and BitBucket supports that by providing an alternative URL scheme. See section "SSH on Port 443" at the bottom of this page. So the URL looks like this: ssh://git@altssh.bitbucket.org:443/accountname/reponame/ The plugin throws an error like this: itbucket notify on start failed: Bitbucket build notifier support only repositories hosted in bitbucket.org java.lang.Exception: Bitbucket build notifier support only repositories hosted in bitbucket.org at org.jenkinsci.plugins.bitbucket.BitbucketBuildStatusNotifier.createBuildStatusResourceFromBuild(BitbucketBuildStatusNotifier.java:183) at org.jenkinsci.plugins.bitbucket.BitbucketBuildStatusNotifier.notifyBuildStatus(BitbucketBuildStatusNotifier.java:215) at org.jenkinsci.plugins.bitbucket.BitbucketBuildStatusNotifier.prebuild(BitbucketBuildStatusNotifier.java:85) at hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:804) at hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:799) at hudson.model.Build$BuildExecution.doRun(Build.java:142) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:533) at hudson.model.Run.execute(Run.java:1759) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) It seems to be consistent with the code: https://github.com/jenkinsci/bitbucket-build-status-notifier-plugin/blob/master/src/main/java/org/jenkinsci/plugins/bitbucket/BitbucketBuildStatusNotifier.java#L182 I've tried to replace the line above by something like (probably better to define a list of allowed URLs and check if the host is in it though): URIish urIish = scmAdapter.getRepositoryUri(); if (!urIish.getHost().equals("bitbucket.org") && !urIish.getHost().equals("altssh.bitbucket.org") && !urIish.getHost().equals("altssh.bitbucket.org:443")) { throw new Exception("Bitbucket build notifier support only repositories hosted in bitbucket.org"); } But I'm not allowed to push to the repo. Could you fix this? Thanks in advance!

    Jenkins JIRA | 8 months ago | Jean-Paul Delimat
    java.lang.Exception: Bitbucket build notifier support only repositories hosted in bitbucket.org
  2. 0

    On some servers the outgoing traffic on port 22 is blocked and BitBucket supports that by providing an alternative URL scheme. See section "SSH on Port 443" at the bottom of this page. So the URL looks like this: ssh://git@altssh.bitbucket.org:443/accountname/reponame/ The plugin throws an error like this: itbucket notify on start failed: Bitbucket build notifier support only repositories hosted in bitbucket.org java.lang.Exception: Bitbucket build notifier support only repositories hosted in bitbucket.org at org.jenkinsci.plugins.bitbucket.BitbucketBuildStatusNotifier.createBuildStatusResourceFromBuild(BitbucketBuildStatusNotifier.java:183) at org.jenkinsci.plugins.bitbucket.BitbucketBuildStatusNotifier.notifyBuildStatus(BitbucketBuildStatusNotifier.java:215) at org.jenkinsci.plugins.bitbucket.BitbucketBuildStatusNotifier.prebuild(BitbucketBuildStatusNotifier.java:85) at hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:804) at hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:799) at hudson.model.Build$BuildExecution.doRun(Build.java:142) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:533) at hudson.model.Run.execute(Run.java:1759) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) It seems to be consistent with the code: https://github.com/jenkinsci/bitbucket-build-status-notifier-plugin/blob/master/src/main/java/org/jenkinsci/plugins/bitbucket/BitbucketBuildStatusNotifier.java#L182 I've tried to replace the line above by something like (probably better to define a list of allowed URLs and check if the host is in it though): URIish urIish = scmAdapter.getRepositoryUri(); if (!urIish.getHost().equals("bitbucket.org") && !urIish.getHost().equals("altssh.bitbucket.org") && !urIish.getHost().equals("altssh.bitbucket.org:443")) { throw new Exception("Bitbucket build notifier support only repositories hosted in bitbucket.org"); } But I'm not allowed to push to the repo. Could you fix this? Thanks in advance!

    Jenkins JIRA | 8 months ago | Jean-Paul Delimat
    java.lang.Exception: Bitbucket build notifier support only repositories hosted in bitbucket.org
  3. 0

    [JIRA] [bitbucket-build-status-notifier-plugin] (JENKINS-33901) Bitbucket notifier plugin does not support SSH on port 443

    Google Groups | 8 months ago | jp.de...@gmail.com (JIRA)
    java.lang.Exception: Bitbucket build notifier support only repositories hosted in bitbucket.org
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    XA used in Web Logic.

    Oracle Community | 2 decades ago | 3004
    java.lang.Exception: JDBC driver does not support XA, hence cannot be a participant in 2-phase commit. It does support commitOnePhase, and will work if it's the only resource in the transaction. at java.lang.Throwable.<init>(Compiled Code) at java.lang.Exception.<init>(Compiled Code)
  6. 0

    Siebel Adapter throwing exception

    Oracle Community | 5 years ago | 878628
    java.lang.Exception: The requested extension language function is not supported in this configuration. The current product configuration does not support the requested function.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.Exception

      Bitbucket build notifier support only repositories hosted in bitbucket.org

      at org.jenkinsci.plugins.bitbucket.BitbucketBuildStatusNotifier.createBuildStatusResourceFromBuild()
    2. org.jenkinsci.plugins
      BitbucketBuildStatusNotifier.prebuild
      1. org.jenkinsci.plugins.bitbucket.BitbucketBuildStatusNotifier.createBuildStatusResourceFromBuild(BitbucketBuildStatusNotifier.java:183)
      2. org.jenkinsci.plugins.bitbucket.BitbucketBuildStatusNotifier.notifyBuildStatus(BitbucketBuildStatusNotifier.java:215)
      3. org.jenkinsci.plugins.bitbucket.BitbucketBuildStatusNotifier.prebuild(BitbucketBuildStatusNotifier.java:85)
      3 frames
    3. Hudson
      Executor.run
      1. hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:804)
      2. hudson.model.AbstractBuild$AbstractBuildExecution.preBuild(AbstractBuild.java:799)
      3. hudson.model.Build$BuildExecution.doRun(Build.java:142)
      4. hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:533)
      5. hudson.model.Run.execute(Run.java:1759)
      6. hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      7. hudson.model.ResourceController.execute(ResourceController.java:89)
      8. hudson.model.Executor.run(Executor.java:240)
      8 frames