Skip to content

Azure File Copy Extended unable set Additional Arguments #57

@doggy8088

Description

@doggy8088

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.

if (additionalArguments) {
toolRunner.line(additionalArguments);
}

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions