diff --git a/src/main/java/org/jenkinsci/plugins/jvctb/ViolationsToBitbucketServerRecorder.java b/src/main/java/org/jenkinsci/plugins/jvctb/ViolationsToBitbucketServerRecorder.java index aa30701..406e690 100644 --- a/src/main/java/org/jenkinsci/plugins/jvctb/ViolationsToBitbucketServerRecorder.java +++ b/src/main/java/org/jenkinsci/plugins/jvctb/ViolationsToBitbucketServerRecorder.java @@ -71,10 +71,8 @@ public void perform( .or(new ViolationsToBitbucketServerGlobalConfiguration()); combinedConfig.applyDefaults(defaults); - ViolationCommentsToBitbucketServerApi violationCommentsToBitbucketServerApi = - violationCommentsToBitbucketServerApi(); ProxyConfigDetails proxyConfigDetails = - createProxyConfigDetails(listener.getLogger(), config.getBitbucketServerUrl()); + createProxyConfigDetails(listener.getLogger(), combinedConfig.getBitbucketServerUrl()); jvctsPerform(proxyConfigDetails, combinedConfig, filePath, build, listener); }