geeklearningio / gl-vsts-tasks-azure

Azure Pipelines Tasks that help you build and publish your applications on Microsoft Azure
https://marketplace.visualstudio.com/items?itemName=geeklearningio.gl-vsts-tasks-azure
MIT License
19 stars 7 forks source link

Azure File Copy Extended unable set Additional Arguments #57

Open doggy8088 opened 3 years ago

doggy8088 commented 3 years ago

I'm using Azure Pipelines. I'd like to append /SetContentType to the AzCopy command so I configured Additional Arguments field. Here is my config:

image

Here is the YAML version:

steps:
- task: geeklearningio.gl-vsts-tasks-azure.az-copy-task.AzCopy@1
  displayName: 'Copy files from or to Azure Storage'
  inputs:
    SourceKind: FileSystem
    SourcePath: '$(System.DefaultWorkingDirectory)/_QA-CI/drop/site'
    DestinationConnectedServiceName: 'Microsoft Azure Sponsorship'
    DestinationAccount: docs
    DestinationObject: site
    Recursive: true
    ExcludeNewer: false
    ExcludeOlder: false
    Arguments: /SetContentType

Here is the log. I can't see /SetContentType in the command:

2021-08-22T03:24:15.1293251Z [command]C:\agents\2.190.0\externals\azcopy\azcopy.exe /Source:D:\a\r1\a\_QA-CI\drop\site /Dest:https://mystor.blob.core.windows.net/site /DestKey:****** /S /Y

I saw the source. It seems okay. I don't know why I can't add Additional Arguments to the command.

https://github.com/geeklearningio/gl-vsts-tasks-azure/blob/5da85062a3925111f3b87469220fe04ed3e3956c/Tasks/AzCopy/azCopy.ts#L196-L198

I already tried many ways. I never have a chance to add additional arguments to the AzCopy command.

Is this a bug or what's missing from me?

davidmiguelalves commented 2 years ago

Hi, this is going to be fixed? I notice than the arguments is comming undefined:

2022-02-07T12:50:52.0149190Z ##[debug]Arguments=undefined