Skip to content

Commit 0796c60

Browse files
committed
Fix logger and some display name
1 parent 6732817 commit 0796c60

File tree

5 files changed

+5
-22
lines changed

5 files changed

+5
-22
lines changed

.editorconfig

Lines changed: 0 additions & 19 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ work/
2121
META-INF/
2222
/.apt_generated/
2323
/.apt_generated_tests/
24+
/bin/

src/main/java/com/cloudbees/jenkins/plugins/bitbucket/impl/webhook/plugin/PluginWebhookConfiguration.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
import com.cloudbees.jenkins.plugins.bitbucket.api.webhook.BitbucketWebhookManager;
3030
import com.cloudbees.jenkins.plugins.bitbucket.impl.util.BitbucketCredentialsUtils;
3131
import com.cloudbees.jenkins.plugins.bitbucket.impl.webhook.Messages;
32-
import com.cloudbees.jenkins.plugins.bitbucket.impl.webhook.server.ServerWebhookConfiguration;
3332
import com.cloudbees.plugins.credentials.common.StandardCredentials;
3433
import com.cloudbees.plugins.credentials.common.StandardUsernamePasswordCredentials;
3534
import edu.umd.cs.findbugs.annotations.CheckForNull;
@@ -56,7 +55,7 @@
5655
// https://help.moveworkforward.com/BPW/atlassian-bitbucket-post-webhook-api
5756
// https://help.moveworkforward.com/BPW/how-to-get-configurations-using-post-webhooks-for-
5857
public class PluginWebhookConfiguration implements BitbucketWebhookConfiguration {
59-
private static final Logger logger = Logger.getLogger(ServerWebhookConfiguration.class.getName());
58+
private static final Logger logger = Logger.getLogger(PluginWebhookConfiguration.class.getName());
6059
private static final String WEBHOOK_API = "/rest/webhook/1.0/projects/{owner}/repos/{repo}/configurations";
6160

6261
/**
@@ -122,7 +121,7 @@ public void setEndpointJenkinsRootURL(@CheckForNull String endpointJenkinsRootUR
122121

123122
@Override
124123
public String getDisplayName() {
125-
return Messages.ServerWebhookImplementation_displayName();
124+
return Messages.PluginWebhookImplementation_displayName();
126125
}
127126

128127
@NonNull

src/main/java/com/cloudbees/jenkins/plugins/bitbucket/trait/WebhookConfigurationTrait.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
*
3838
* @since 2.4.5
3939
*/
40+
@Deprecated
4041
public class WebhookConfigurationTrait extends SCMSourceTrait {
4142

4243
/**

src/main/resources/com/cloudbees/jenkins/plugins/bitbucket/impl/webhook/Messages.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,4 @@
2222
# THE SOFTWARE.
2323
CloudWebhookImplementation.displayName=Native Cloud Implementation
2424
ServerWebhookImplementation.displayName=Native Server Implementation
25+
PluginWebhookImplementation.displayName=Bitbucket Post Webhook for Jenkins Implementation

0 commit comments

Comments
 (0)