Open jatocode opened 4 days ago
@jatocode, could you try enclosing ContainerImageTags with escaped double quotes?
- task: DotNetCoreCLI@2
inputs:
command: 'publish'
publishWebProjects: false
projects: |
.... my projects ...
arguments: -p ContainerImageTags="\"latest;dev;$(tag);$(buildnum)\"" -p:PublishProfile="mespressen"
That actually seemed to work!! Thank you. I though I had tried all possible versions of escaped quotes...
I was under the impression that single quoutes where needed. based on this: Microsoft containerize app
New issue checklist
Task name
DotNetCoreCLI@2
Task version
2.*
Issue Description
The dotnet publish task removes or changes quotes in the arguments list. I found a workaround that preserves the quotes as containertags prefers with single+double '". But then some other transformations seems to be happening
Command
The same dotnet publish command works in local commandline.
Error
My containerimagetags get set to what seems to be correct, but then some tags gets removed and the semicolon is replaced by a comma.
Logs
Easy to spot in an image, compare the blue line with the error last in the image![image](https://github.com/microsoft/azure-pipelines-tasks/assets/621254/fc266231-a7d5-4da1-be61-0e2a82540a5f)
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
ubuntu-latest
Relevant log output
Full task logs with system.debug enabled
Repro steps
No response