Merge pull request #4234 from naamunds/SupportCustomContainer
Support building with custom container name
This commit is contained in:
commit
19f295113a
3 changed files with 24 additions and 43 deletions
|
@ -18,6 +18,9 @@ namespace Microsoft.DotNet.Cli.Build
|
|||
[Required]
|
||||
public string AccountKey { get; set; }
|
||||
|
||||
[Required]
|
||||
public string ContainerName { get; set; }
|
||||
|
||||
[Required]
|
||||
public ITaskItem[] Items { get; set; }
|
||||
|
||||
|
@ -25,9 +28,9 @@ namespace Microsoft.DotNet.Cli.Build
|
|||
{
|
||||
get
|
||||
{
|
||||
if(_azurePublisher == null)
|
||||
if (_azurePublisher == null)
|
||||
{
|
||||
_azurePublisher = new AzurePublisher(AccountName, AccountKey);
|
||||
_azurePublisher = new AzurePublisher(AccountName, AccountKey, ContainerName);
|
||||
}
|
||||
|
||||
return _azurePublisher;
|
||||
|
@ -42,7 +45,7 @@ namespace Microsoft.DotNet.Cli.Build
|
|||
return false;
|
||||
}
|
||||
|
||||
foreach(var item in Items)
|
||||
foreach (var item in Items)
|
||||
{
|
||||
string relativeBlobPath = item.GetMetadata("RelativeBlobPath");
|
||||
if (string.IsNullOrEmpty(relativeBlobPath))
|
||||
|
@ -53,7 +56,7 @@ namespace Microsoft.DotNet.Cli.Build
|
|||
}
|
||||
|
||||
AzurePublisherTool.SetBlobPropertiesBasedOnFileType(relativeBlobPath);
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue