Closed mateuszkozakiewicz closed 1 year ago
@mateuszkozakiewicz Hey Mateusz, thanks for bringing this issue up -- looks like we need to properly handle the error code returned when we make calls to tl.execSync
for these command line tools, such as az
and docker
. This should be a quick fix -- I'll work on getting this out shortly.
@mateuszkozakiewicz -- This is now fixed in the 0.1.10
release of the AzureContainerAppsRC
task -- if you continue to see errors not being handled correctly in your usage of this task, please let me know and I'll look into it. Thanks!
Non-zero exit codes from
docker
andaz
should fail this task in the pipeline, however currently they are simply ignored and pipeline is successful. Example output where 2 problems occurred:First problem is here
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/vsts/work/1/s/home: no such file or directory
this is an exit code 1 from docker.Second problem is here
ERROR: (WebhookInvalidParameterValue) The following field(s) are either invalid or missing. Invalid value: "xxxacr.azurecr.io/backend:539.20230202.18": GET https:: MANIFEST_UNKNOWN: manifest tagged by "539.20230202.18" is not found; map[Tag:539.20230202.18]: template.containers.xxx-api.image.