From f94ad3455cdc4f0522588114d1a641b84043a3ef Mon Sep 17 00:00:00 2001 From: Tim Jacomb <21194782+timja@users.noreply.github.com> Date: Thu, 10 Aug 2023 22:02:19 +0100 Subject: [PATCH] Use resolved container name when archiving (#75) --- .../jenkins/artifactmanager/AzureArtifactManager.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/microsoft/jenkins/artifactmanager/AzureArtifactManager.java b/src/main/java/com/microsoft/jenkins/artifactmanager/AzureArtifactManager.java index a5ecf9a..ef6cd46 100644 --- a/src/main/java/com/microsoft/jenkins/artifactmanager/AzureArtifactManager.java +++ b/src/main/java/com/microsoft/jenkins/artifactmanager/AzureArtifactManager.java @@ -138,7 +138,11 @@ public void archive(FilePath workspace, Launcher launcher, BuildListener listene .act(new ContentTypeGuesser(new ArrayList<>(artifacts.keySet()), listener)); try { - BlobContainerClient container = Utils.getBlobContainerReference(accountInfo, config.getContainer(), true); + BlobContainerClient container = Utils.getBlobContainerReference( + accountInfo, + this.actualContainerName, + true + ); for (Map.Entry entry : contentTypes.entrySet()) { String path = "artifacts/" + entry.getKey();