aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/bitbucketpullrequestbuilder
AgeCommit message (Collapse)AuthorFilesLines
2017-06-04Merge pull request #122 from IDMWORKS/bug/null-destination-commitMartin Damovsky3-6/+23
Fix NullPointerException when a Pull Request's destination commit is NULL
2017-06-04Decreased logging level from INFO to FINE across whole pluginMartin Damovsky6-31/+31
2017-05-29Add support for Jenkins pipelinesJon Fogh1-1/+3
2017-05-17Fix error executing javadoc target - An error has occurred in JavaDocs ↵Nathanial Woolls2-2/+2
report generation: error: unexpected text
2017-05-17Fix NullPointerException when a Pull Request's destination commit is NULLNathanial Woolls1-4/+21
* see: https://github.com/nishio-dens/bitbucket-pullrequest-builder-plugin/issues/119 * see: https://github.com/nishio-dens/bitbucket-pullrequest-builder-plugin/issues/98
2017-03-01Cancel outdated jobs - added support for pipeline jobsMartin Damovsky1-2/+13
2017-02-23Merge pull request #112 from jenkinsci/comments-propertiesMartin Damovsky1-18/+1
Comments properties
2017-02-23Merge pull request #113 from jenkinsci/masterMartin Damovsky1-2/+0
merge jenkinsci/ to nishio-dens/
2017-02-23Merge branch 'master' into parameterize-comment-build-triggerNicholas Blair5-59/+107
2017-02-23pullrequest comments and their properties - some of them are not used at the ↵Martin Damovsky1-18/+1
moment -> removed
2017-02-23fixed bug in JSON Parsing for Pullrequest commentsMartin Damovsky1-2/+0
2017-02-22Fixed bug in PullRequest - NPE see ↵Martin Damovsky1-1/+4
https://github.com/nishio-dens/bitbucket-pullrequest-builder-plugin/issues/110
2017-02-22Merge branch 'master' into parameterize-comment-build-triggerNicholas Blair5-90/+162
2017-02-20Fixed reported Findbugs issuesMartin Damovsky5-15/+60
2017-02-20Fix PR build status and update of job descriptionFrode Aannevik2-33/+40
BitbucketBuildListener was not invoked on pipeline jobs Change BitbucketBuildListener to extend from RunListener<Run<?, ?>> so it will invoked to update job description and PR build result
2017-02-20check for disabled build for older jobsGazal K1-3/+7
looks like pipeline jobs don't have a disable option
2017-02-20Add support for Jenkins 2 (incomplete)Frode Aannevik2-13/+25
Replace use of AbstractProject with Job to fix ClassCastException thrown when using the plugin in a pipeline job The fix is "not" complete, it remains to find a replacement to the call AbstractProject.isDisabled used to decide if the build should be skipped Previously called in BitbucketBuildTrigger.run() fixes #94
2017-02-18fix: can't have 2 @DataBoundConstructorsNicholas Blair2-30/+10
Refactor to move default value for commentTrigger to config.jelly. Handle special case in BitbucketBuildRepository where trigger field is null within unit tests (since BitbucketBuildTrigger can't be mocked or initialized in the test).
2017-02-18Parameterize comment phrase to trigger a buildNicholas Blair2-78/+115
Defaults to prior "test this please", can be overridden in the job configuration.
2017-02-18Merge pull request #9 from xob/cancel-outdatedMartin Damovsky1-3/+61
Add option to cancel outdated builds when a pull request is updated
2017-02-18Merge pull request #11 from elifarley/loggingMartin Damovsky2-9/+0
Remove all "e.printStackTrace()" calls
2017-02-10Fix `null/null` repository URLWynand Pieters1-1/+1
On the latest version I started getting these errors in the logs and my jobs would trigger every minute and never flag the build as having run before. ``` POST state INPROGRESS to https://bitbucket.org/api/2.0/repositories/null/null/commit/b6f8169ce460/statuses/build with key 515f53a20bf37bd484f2be5cda6ab168cd194cee with response {"type": "error", "error": {"message": "Repository null/null not found"}} ``` Functionality in `getOwnerName` and `getRepositoryName` name changed from previous versions, moved to inside `setFullName` which is now doing the `if` on the wrong value. This causes `null/null` to be set as the owner name / repo name.
2017-02-08Remove all "e.printStackTrace()" callselifarley1-2/+0
2017-02-08Remove all "e.printStackTrace()" callselifarley1-7/+0
2017-01-01Merge pull request #7 from csomme/bitbucket-v2-pr-comments-apiS.Nishio2-24/+47
Use the 2.0 Bitbucket pull request comment API.
2016-12-10Merge pull request #5 from technocoreai/http-client-timeoutS.Nishio1-1/+8
Set an explicit HTTP request timeout
2016-10-27Add option to cancel outdated builds when a pull request is updatedOlivier Bellemare1-3/+61
2016-08-25Use the V2 Bitbucket pull request comment API.Chris Somme2-24/+47
The V1 pull request comment API is deprecated. Replace with a call to the V2 API. The V2 API is paginated and may need to be called multiple times to get the entire set of comments. While fixing this I noticed that while fetching pull requests the plugin is using the v2 API there, which is also paginated. So not all open pull requests were being retrieved.
2016-06-03Merge pull request #87 from frodeaa/ttp_multiple_jobsS.Nishio1-9/+5
Fix TTP only working for one of multiple jobs
2016-05-25remove adding parameters action in the EnvironmentContributorFrode Aannevik2-14/+17
move it back to BitbucketBuildTrigger to fix the the problem that a lot of empty "Parameters" links are added to each build
2016-05-24Adapt to SECURITY-170Frode Aannevik2-28/+54
Use EnvironmentContributor instead of build parameters Based on https://github.com/jenkinsci/ghprb-plugin/pull/344 Fixes: #86
2016-05-21Fix TTP only working for one of multiple jobsFrode Aannevik1-9/+5
The bug was that it did not handle TTBuild comments from another job Will now check all comments if they is a TTBuild for this job, and only trigger the job if we did not find a match Fixes: #82
2016-04-30Merge pull request #85 from michaeljb/fix-root-urlS.Nishio1-1/+3
Use JenkinsLocationConfiguration to fetch the URL.
2016-04-25Use JenkinsLocationConfiguration to fetch the URL.Michael Brandt1-1/+3
`Jenkins.getInstance().getRootUrl()` returns `null` despite the URL being set through the web UI. `JenkinsLocationConfiguration.getUrl()` returns the correct URL. Thanks Esteban Angee on StackOverflow: http://stackoverflow.com/questions/15949946/programatically-access-jenkins-url [Resolves #19]
2016-04-20Available "pullRequestAuthor" env variable (featured from #83)Maxim Epishchev5-17/+124
Env variable "pullRequestAuthor" contain two parts of author: full name of user and short username in format, like: "Some Doo <@somedoo>". Add test for PR build filter: now we can filter also by author: "a:maxvodo" by example.
2016-04-08Set an explicit HTTP request timeoutAlexey Ermakov1-1/+8
2016-02-18Properly close connections to avoid TCP CLOSE_WAITMaxim Epishchev1-0/+2
Using HttpMethodBase.releaseConnection() for this stuff.
2016-02-04Remove overqualified using of Class<T> as HttpClient interceptorMaxim Epishchev2-14/+5
Constructor of ApiClient now using just <T extends HttpClientFactory> T type to make possible using of HttpClient interceptor in tests.
2016-02-04Allow default "none" credential in BitbucketRepository::getCredentials()Maxim Epishchev1-0/+1
Using by default only username and passwords fields to provide BitBucket auth cause NullReferenceException in BitbucketRepository::getCredentials(), because credentialsId is null. It's my fault :(
2016-02-03Limit size "key" field in BitBucket POST APIMaxim Epishchev3-4/+49
Refactoring method ApiClient::computeAPIKey() to check maximum size of computed key. Now field size contolled by special constant ApiClient::MAX_KEY_SIZE_BB_API. This changes will resolve, in my opinion, issue with continuously rebuilding: method ApiClient::hasBuildStatus() fail and PR's are always trigger new builds.
2016-02-01Add tests for integration CredentialsSupport functionalMaxim Epishchev2-34/+80
By default we using username/password from original text fields (config.jelly). If credentials ID provided in plugin settings - using them for BitBucket API auth.
2016-02-01Merge branch 'CredentialsSupport' of ↵Maxim Epishchev2-2/+44
https://github.com/kadaan/bitbucket-pullrequest-builder-plugin into CredentialsSupport Conflicts: .gitignore src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketRepository.java
2016-01-26Bugfixes issue for continuously rebuilding PRMaxim Epishchev3-36/+154
If available TTP (aka "test this please") comment Jenkins PR builder continuously rebuilding PR. Now Jenkins post specific build comment. If you want to rebuild already rebuilded PR, post new TTP comment.
2016-01-21Refactoring filters code and add testsMaxim Epishchev3-11/+105
Now we can using more complex filters with source/destination filtration. Also add experimental integration with Git SCM plugin.
2016-01-15Fix UTF-8 build statuses and fix issue:1; also minor fixesMaxim Epishchev4-20/+52
2016-01-13Add branches to build filter (similar issue:61)Maxim Epishchev3-4/+134
2015-12-17Merge branch 'master_k' into CredentialsSupportJoel Baranick6-109/+92
# Conflicts: # src/main/java/bitbucketpullrequestbuilder/bitbucketpullrequestbuilder/BitbucketRepository.java
2015-12-07Use new Build Status instead of commenting on pull requestsBjörn Dahlgren6-108/+91
News: http://blog.bitbucket.org/2015/11/18/introducing-the-build-status-api-for-bitbucket-cloud/ API: https://confluence.atlassian.com/bitbucket/buildstatus-resource-779295267.html
2015-10-28Add support for plaintext username/password unless credentials are specified.Joel Baranick2-2/+23
2015-10-21Support credentials by allowing UsernamePasswordCredentials to be picked ↵Joel Baranick2-14/+36
when configuring BitbucketBuildTrigger and change BitbucketRepository to use the credentials when setting up the ApiClient.