For my Azure DevOps release pipeline, I get the build artifact (generated from a python repo) and extract its contents like this:
# Write your PowerShell commands here.
Write-Host "Extracting sources"
cp $(System.DefaultWorkingDirectory)/_repo-master-pipeline/dist/repo-1.0.0.tar.gz .
tar xvzf repo-1.0.0.tar.gz
type repo-1.0.0/foo.txt
I can see in the logs that tar
is able to extract contents from the artifact. The type
command which prints foo.txt succeeds too.
But, I am seeing this error:
2020-11-06T10:05:32.3917349Z Extracting sources
2020-11-06T10:05:32.6074421Z ##[error]x repo-1.0.0/
<<< some lines from the tar command are printed here showing successful extraction >>>
What could I be doing wrong? Feels like the entire release pipeline will work great, if not for this false-positive error. Further tasks in this stage cannot be executed because of this.
continue on error
control option, the release pipeline will progress even if there really is an error. This is something I want to avoid – Orange