From 42d9117f490e577a0273f3ba0a37c2375fc9b264 Mon Sep 17 00:00:00 2001
From: Tim Jacomb <21194782+timja@users.noreply.github.com>
Date: Fri, 7 May 2021 10:22:03 +0100
Subject: [PATCH] Leftover bits from track 1 => track 2 SDK upgrade (#79)
---
pom.xml | 42 +++----------------
.../AzureKeyVaultCredentialRetriever.java | 2 +
2 files changed, 8 insertions(+), 36 deletions(-)
diff --git a/pom.xml b/pom.xml
index c54a1c6..a01c44a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
org.jenkins-ci.plugins
plugin
- 4.17
+ 4.18
azure-keyvault
@@ -15,7 +15,7 @@
9999-SNAPSHOT
jenkinsci/azure-keyvault-plugin
- 2.277.1
+ 2.277.2
8
2.0
@@ -63,40 +63,10 @@
io.jenkins.tools.bom
bom-2.277.x
- 26
+ 807.v6d348e44c987
import
pom
-
- com.microsoft.azure
- azure-annotations
- 1.10.0
-
-
- org.apache.commons
- commons-lang3
- 3.11
-
-
- com.google.code.gson
- gson
- 2.8.5
-
-
- org.apache.httpcomponents
- httpcore
- 4.4.5
-
-
- joda-time
- joda-time
- 2.10.2
-
-
- com.squareup.retrofit2
- retrofit
- 2.6.2
-
@@ -107,7 +77,7 @@
org.jenkins-ci.plugins
azure-credentials
- 3.0.0
+ 181.v00b0d97d2686
@@ -163,12 +133,12 @@
org.apache.maven.plugins
maven-checkstyle-plugin
- 3.1.1
+ 3.1.2
com.puppycrawl.tools
checkstyle
- 8.41
+ 8.42
diff --git a/src/main/java/org/jenkinsci/plugins/azurekeyvaultplugin/AzureKeyVaultCredentialRetriever.java b/src/main/java/org/jenkinsci/plugins/azurekeyvaultplugin/AzureKeyVaultCredentialRetriever.java
index 9a43249..c344739 100644
--- a/src/main/java/org/jenkinsci/plugins/azurekeyvaultplugin/AzureKeyVaultCredentialRetriever.java
+++ b/src/main/java/org/jenkinsci/plugins/azurekeyvaultplugin/AzureKeyVaultCredentialRetriever.java
@@ -14,6 +14,7 @@
import com.microsoft.azure.util.AzureCredentials;
import com.microsoft.azure.util.AzureImdsCredentials;
import hudson.model.Run;
+import io.jenkins.plugins.azuresdk.HttpClientRetriever;
import java.util.Collections;
import java.util.List;
import java.util.logging.Level;
@@ -84,6 +85,7 @@ public static TokenCredential getCredentialById(String credentialID) {
credential = new ClientSecretCredentialBuilder()
.clientId(azureCredential.getClientId())
.clientSecret(azureCredential.getPlainClientSecret())
+ .httpClient(HttpClientRetriever.get())
.tenantId(azureCredential.getTenant())
.build();
}