I am using the AzureBlob File Copy task in a release pipeline. I want to ignore certain files and folders from my source artifact (e.g. .gitignore, all .md files, the .git folder).
The Optional Arguments for the tasks does not seem to accept the AzCopy flag --exlude. I have not used AzCopy, but it does specify that
The general format of the commands is: 'azcopy [command] [arguments] --[flag-name]=[flag-value]'.
I tried using
/Y /SetContentType /Z /V /S --exclude=*.md
but I get the error
The syntax of the command is incorrect. The option "--exclude=*.md" is not recognized.
when the release is deployed. I also tried different variations of the --exclude flag, but all have resulted in the same error message.
- Am I simply using the incorrect syntax for the command, or does the Optional Arguments strictly only take arguments and not flags?
- Is there a way to ignore certain files and folders within this task?