Skip to content

Commit

Permalink
Handle / in branch name (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
timja authored Aug 18, 2021
1 parent 9bc4e01 commit cb8b768
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ private void checkConfig(String containerName, String prefix) {
@Override
public void onLoad(Run<?, ?> aBuild) {
this.defaultKey = String.format(Constants.BUILD_PREFIX_FORMAT, aBuild.getParent().getFullName(),
aBuild.getNumber());
aBuild.getNumber()).replace("%2F", "/");
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Set;
import java.util.logging.Level;
import java.util.logging.Logger;
Expand Down Expand Up @@ -106,6 +107,7 @@ public <V> V run(Callable<V, IOException> callable) throws IOException {
Map<String, CachedMetadata> saved = new HashMap<>();
try {
StorageAccountInfo accountInfo = Utils.getStorageAccount(build.getParent());
Objects.requireNonNull(this.container, "Container must not be null");
BlobContainerClient blobContainerReference = Utils.getBlobContainerReference(accountInfo, this.container,
false);
ListBlobsOptions listBlobsOptions = new ListBlobsOptions()
Expand Down

0 comments on commit cb8b768

Please sign in to comment.