Skip to content

Commit f94ad34

Browse files
authored
Use resolved container name when archiving (#75)
1 parent 65f5565 commit f94ad34

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/com/microsoft/jenkins/artifactmanager/AzureArtifactManager.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,11 @@ public void archive(FilePath workspace, Launcher launcher, BuildListener listene
138138
.act(new ContentTypeGuesser(new ArrayList<>(artifacts.keySet()), listener));
139139

140140
try {
141-
BlobContainerClient container = Utils.getBlobContainerReference(accountInfo, config.getContainer(), true);
141+
BlobContainerClient container = Utils.getBlobContainerReference(
142+
accountInfo,
143+
this.actualContainerName,
144+
true
145+
);
142146

143147
for (Map.Entry<String, String> entry : contentTypes.entrySet()) {
144148
String path = "artifacts/" + entry.getKey();

0 commit comments

Comments
 (0)