Skip to content

Commit b860013

Browse files
authored
Report Usage - Add SSL context (#751)
1 parent 3f694f8 commit b860013

File tree

1 file changed

+5
-1
lines changed
  • build-info-extractor/src/main/java/org/jfrog/build/extractor/usageReport

1 file changed

+5
-1
lines changed

build-info-extractor/src/main/java/org/jfrog/build/extractor/usageReport/UsageReporter.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import org.jfrog.build.client.ProxyConfiguration;
55
import org.jfrog.build.extractor.clientConfiguration.client.artifactory.ArtifactoryManager;
66

7+
import javax.net.ssl.SSLContext;
78
import java.io.IOException;
89

910
/**
@@ -19,11 +20,14 @@ public UsageReporter(String productId, String[] featureIds) {
1920
}
2021

2122
@SuppressWarnings("unused")
22-
public void reportUsage(String artifactoryUrl, String username, String password, String accessToken, ProxyConfiguration proxyConfiguration, Log log) throws IOException {
23+
public void reportUsage(String artifactoryUrl, String username, String password, String accessToken, ProxyConfiguration proxyConfiguration, SSLContext sslContext, Log log) throws IOException {
2324
try (ArtifactoryManager artifactoryManager = new ArtifactoryManager(artifactoryUrl, username, password, accessToken, log)) {
2425
if (proxyConfiguration != null) {
2526
artifactoryManager.setProxyConfiguration(proxyConfiguration);
2627
}
28+
if (sslContext != null) {
29+
artifactoryManager.setSslContext(sslContext);
30+
}
2731
artifactoryManager.reportUsage(this);
2832
}
2933
}

0 commit comments

Comments
 (0)