projects:bitbucket:pullrequestplugin
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
projects:bitbucket:pullrequestplugin [2016/04/17 23:58] – mkucia | projects:bitbucket:pullrequestplugin [2016/04/25 22:08] (current) – [Planned features] mkucia | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Bitbucket Server Pull Request Hook Plugin ====== | + | ====== Bitbucket Server |
- | * [[Atlassian Marketplace]] | + | |
- | * [[Sources]] | + | |
- | ===== TODOs ===== | + | {{ : |
- | * Internationalization | + | |
- | * Support for HTTPs | + | |
- | * Test button in the config | + | |
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | |||
+ | ===== Planned features ===== | ||
+ | * Multiple URLs | ||
+ | * Support for HTTPS | ||
+ | * Internationalization | ||
===== Introduction ===== | ===== Introduction ===== | ||
The plugin provides the following functionality: | The plugin provides the following functionality: | ||
Line 31: | Line 33: | ||
'' | '' | ||
- | [IMAGE] | + | {{: |
==== Authorization ==== | ==== Authorization ==== | ||
Line 37: | Line 39: | ||
In such case the field will look like: | In such case the field will look like: | ||
- | [IMAGE] | + | {{: |
Please visit [[wp> | Please visit [[wp> | ||
Line 47: | Line 49: | ||
===== Example 1 ===== | ===== Example 1 ===== | ||
- Create Jenkins job " | - Create Jenkins job " | ||
- | - Add String Parameter ALL | + | - Add String Parameter |
- Add Token '' | - Add Token '' | ||
- Check if the job is working | - Check if the job is working | ||
Line 58: | Line 60: | ||
+ | - Add more String Parameters to the Jenkins job: | ||
+ | - '' | ||
+ | - '' | ||
+ | - '' | ||
+ | - '' | ||
- Configure Bitbucket Server | - Configure Bitbucket Server | ||
+ | - Ensure that the plugin is installed. | ||
+ | - Enter any repository Settings, then Hooks | ||
+ | - Enable '' | ||
+ | - Enter URL '' | ||
+ | - Enable all triggers | ||
+ | - Save | ||
+ | |||
+ | {{: | ||
+ | {{: | ||
+ | {{: | ||
+ | |||
+ | - Test connection | ||
+ | - Create pull request | ||
+ | - Add a comment | ||
+ | |||
+ | After that you should notice that a new builds were run. Inspect those builds parameters. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | === Extras === | ||
Jenkins job '' | Jenkins job '' | ||
Line 92: | Line 119: | ||
- | ===== Example 2 ===== | + | ===== Displaying Log ===== |
- | We want to capture | + | There is a button in the configuration dialog that leads to a log. Communications are logged per-repository. |
- | * Creation of the new Pull Request | + | {{: |
- | * Changes | + | |
- | * New comment | + | |
- | Captured event will be propagated to [[https://jenkins.io/|Jenkins]] instance. | + | {{:projects: |
- | There is only a single URL per repository therefore we will need a relay job to extract necessary variables and call appropriate jobs. | + | ===== Notes ===== |
+ | * Connection time-out | ||
+ | ===== Test scenarios ===== | ||
- | 1. Configure Jenkins | + | ==== Configuration ==== |
- | * Add Token '' | + | * Entering incorrect URL |
- | * Add Parameters | + | * https: |
+ | * 45434.com | ||
+ | * http:\\ space .com | ||
+ | * Entering incorrect header data | ||
+ | * without colon | ||
+ | * empty lines | ||
- | 2. Configure Bitbucket | + | ==== Core ==== |
- | * Set URL '' | + | * Enable all notification types and check them one-by one |
+ | * Set all possible variables in body and check if it is valid for all notification types | ||
+ | * Use basic-auth header | ||
+ | |||
+ | ==== Weblog ==== | ||
+ | * Accessing non-existing log | ||
+ | * Accessing existing log by admin of other project | ||
+ | * Accessing log with non-configured plugin for given repository | ||
+ | * Accessing log when non-existing | ||
- | ===== Notes ===== | ||
- | * Connection timeout is set to 5 seconds |
projects/bitbucket/pullrequestplugin.1460930287.txt.gz · Last modified: 2016/04/17 23:58 by mkucia