Every time you trigger a build, you don't have to log in to your build server to see if it passed or failed. Now you will be able to know when your build is passing right within the Bitbucket UI.
- Notify to Bitbucket for the following build events:
- Build start
- Build finish
This plugin depends on other Jenkins plugin the Git Plugin. Please install it before if it's still not installed on your Jenkins server.
First you need to get a OAuth consumer key/secret from Bitbucket.
- Login into your Bitbucket account.
- Click your account name and then in Settings from the menu bar.
- Click OAuth from the menu bar.
- Press the Add consumer button.
- The system requests the following information:
- Give a representative name to the consumer e.g. Jenkins build status notifier.
- Although is not used, a Callback URL must be set e.g. ci.your-domain.com.
- Leave blank the URL field.
- Add Read and Write permissions to Repositories.
- Click Save button and a Key and Secret will be automatically generated.
Second, you need to configure Jenkins:
- Open Jenkins Configure System page.
- Set correct URL to Jenkins URL.
- Go to the Job you want notifies the builds to Bitbucket.
- Click Configure.
- Click Add post-build action.
- Select Bitbucket notify build status.
- Set the Key and Secret you previously created.
- Choose whether you want to notify the build status on Jenkins to Bitbucket.
Contributions are welcome! For feature requests and bug reports please read the following Wiki page for guidelines on how to submit an issue.
The MIT License (MIT)
Copyright (c) 2015 Flagbit GmbH & Co. KG
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.