Due to some maintenance issues, this service has been switched in read-only mode, you can find more information about the why

and how to migrate your plugin documentation in this blogpost

Skip to end of metadata
Go to start of metadata

Plugin Information

View Bitbucket Approve on the plugin site for more information.

The current version of this plugin may not be safe to use. Please review the following warnings before use:

This Plugin enables Jenkins to approve commits on Bitbucket after successful builds.

Changelog

1.0.3 - 2015-04-03

  • Allow approval of unstable builds via checkbox #3
  • Support variable substitution for repo owner and name - #2

1.0.2 - 2015-03-23

  • Skip approval for unstable builds

1.0.1 - 2015-01-27

  • Initial release

Global Configuration

This plugin needs a Bitbucket user account that has write access to your repository. you can configure that user in the global Jenkins configuration page:

Job Configuration

Make sure your job uses a Bitbucket repository in the SCM section (you may need to install the Git Client plugin to do that):

Now, add the post-build action called Approve commit on Bitbucket:

Configure that action to use the correct repository owner and repository name:

6 Comments

  1. Unknown User (domi)

    please open/create JIRA component so we can open bugs/feature requests for this plugin

  2. Unknown User (valeriefdes)

    Hi,

    I can't seem to use this plugin. Fail with unknown host exception. 

    I've probably missed some additional configuration for working behind a firewall. Can you help please? (sad) 

    Stacktrace:

    java.net.UnknownHostException: api.bitbucket.org: unknown error
    	at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
    	at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
    	at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
    	at java.net.InetAddress.getAllByName0(InetAddress.java:1276)
    	at java.net.InetAddress.getAllByName(InetAddress.java:1192)
    	at java.net.InetAddress.getAllByName(InetAddress.java:1126)
    	at com.squareup.okhttp.internal.Network$1.resolveInetAddresses(Network.java:29)
    	at com.squareup.okhttp.internal.http.RouteSelector.resetNextInetSocketAddress(RouteSelector.java:259)
    	at com.squareup.okhttp.internal.http.RouteSelector.nextProxy(RouteSelector.java:233)
    	at com.squareup.okhttp.internal.http.RouteSelector.nextUnconnected(RouteSelector.java:159)
    	at com.squareup.okhttp.internal.http.RouteSelector.next(RouteSelector.java:133)
    	at com.squareup.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:314)
    	at com.squareup.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:237)
    	at com.squareup.okhttp.Call.getResponse(Call.java:233)
    	at com.squareup.okhttp.Call.execute(Call.java:84)
    	at org.jenkinsci.plugins.bitbucket_approve.BitbucketApprover.perform(BitbucketApprover.java:99)
    	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
    	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)
    	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:720)
    	at hudson.model.Build$BuildExecution.post2(Build.java:185)
    	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:665)
    	at hudson.model.Run.execute(Run.java:1745)
    	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    	at hudson.model.ResourceController.execute(ResourceController.java:98)
    	at hudson.model.Executor.run(Executor.java:404)
    Build step 'Approve commit on Bitbucket' marked build as failure
  3. Unknown User (zack)

    Does this plugin work with pipelines?

    1. Unknown User (yunmoxue)

      this plugin can use pipeline project, just configure as this plugin document, it will auto approve.

  4. Unknown User (yunmoxue)

    i got the response now.

     

    Bitbucket Approve: https://api.bitbucket.org/2.0/repositories/birdsystem/birdsystem_zend2/commit/bc57a09be55dca6bd55331f832464354c20b24e1/approve
    java.net.ConnectException: Network is unreachable (connect failed)
    	at java.net.PlainSocketImpl.socketConnect(Native Method)
    	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
    	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
    	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
    	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
    	at java.net.Socket.connect(Socket.java:589)
    	at com.squareup.okhttp.internal.Platform.connectSocket(Platform.java:105)
    	at com.squareup.okhttp.Connection.connect(Connection.java:150)
    	at com.squareup.okhttp.Connection.connectAndSetOwner(Connection.java:169)
    	at com.squareup.okhttp.OkHttpClient$1.connectAndSetOwner(OkHttpClient.java:119)
    	at com.squareup.okhttp.internal.http.RouteSelector.next(RouteSelector.java:134)
    	at com.squareup.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:314)
    	at com.squareup.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:237)
    	at com.squareup.okhttp.Call.getResponse(Call.java:233)
    	at com.squareup.okhttp.Call.execute(Call.java:84)
    	at org.jenkinsci.plugins.bitbucket_approve.BitbucketApprover.perform(BitbucketApprover.java:99)
    	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
    	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
    	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
    	at hudson.model.Build$BuildExecution.post2(Build.java:186)
    	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
    	at hudson.model.Run.execute(Run.java:1752)
    	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
    	at hudson.model.ResourceController.execute(ResourceController.java:97)
    	at hudson.model.Executor.run(Executor.java:429)
    Build step 'Approve commit on Bitbucket' marked build as failure
  5. Unknown User (warden)

    Should we deprecate this plugin in favor of https://plugins.jenkins.io/bitbucket-pullrequest-builder ?