-
Notifications
You must be signed in to change notification settings - Fork 364
[JENKINS-74913] Allow extension point in bitbucket source plugin to provide a implementation for web-hooks management #1061
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
4981e8f
to
a90ddbd
Compare
87759dc
to
b75fa8d
Compare
c4adf2d
to
695fb85
Compare
src/main/java/com/cloudbees/jenkins/plugins/bitbucket/api/hook/BitbucketHookProcessor.java
Outdated
Show resolved
Hide resolved
f34291b
to
ef896c0
Compare
ef896c0
to
26b9cb9
Compare
@@ -314,7 +237,7 @@ | |||
* @param value the URL to check. | |||
* @return the validation results. | |||
*/ | |||
public static FormValidation doCheckServerUrl(@QueryParameter String value) { | |||
public static FormValidation doCheckServerURL(@QueryParameter String value) { |
Check warning
Code scanning / Jenkins Security Scan
Stapler: Missing POST/RequirePOST annotation Warning
@@ -314,7 +237,7 @@ | |||
* @param value the URL to check. | |||
* @return the validation results. | |||
*/ | |||
public static FormValidation doCheckServerUrl(@QueryParameter String value) { | |||
public static FormValidation doCheckServerURL(@QueryParameter String value) { |
Check warning
Code scanning / Jenkins Security Scan
Stapler: Missing permission check Warning
if (getBitbucketJenkinsRootUrl() != null) { | ||
setBitbucketJenkinsRootUrl(getBitbucketJenkinsRootUrl()); | ||
@RequirePOST | ||
public Collection<? extends Descriptor<?>> getWebhookDescriptors() { |
Check warning
Code scanning / Jenkins Security Scan
Stapler: Missing permission check Warning
@@ -323,6 +222,14 @@ | |||
return FormValidation.ok(); | |||
} | |||
|
|||
@RequirePOST | |||
public Collection<? extends Descriptor<?>> getWebhookDescriptors() { |
Check warning
Code scanning / Jenkins Security Scan
Stapler: Missing permission check Warning
7e9f003
to
7370183
Compare
…rovide a implementation for web-hooks management WIP refactor the webhook registration, I should create yet another interface that melt global configuration trait configurations, SCMOwner information (repository name and owner) and use a authenticated client to perform calls. Fix CasC configuration change UI make readResolve compatible with old format Add webhook extensible interface to provide custom implementation of wehbook from configuration to the APIs to register it on Bitbucket Add extension point interface to register hook processor provided by other plugins Remove manage of hook events that does ship any king of changes in the source code like reviewer changed or PR approved, they was used only to trigger builds if that kind of changes was enabled bitbucket side. Reindex on empty changes has been turn-off by default, this to avoid scan all repositories if not required.
7370183
to
ae6585c
Compare
…rovide a implementation for web-hooks management new interface to apply a webhook configuration to the Bitbucket
ae6585c
to
e20e512
Compare
…rovide a implementation for web-hooks management new interface to apply a webhook configuration to the Bitbucket
Add extension point interface to register hook processor provided by other plugins
Remove management of hook events that does ship any king of changes in the source code like reviewer changed or PR approved, they was used only to trigger builds if that kind of event was enabled in bitbucket manually.
Reindex on empty changes has been turn-off by default, this to avoid scan all repositories if not required.
WIP