You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enter Task Name: DockerV1(1.181.0) , DockerV2 (2.182.0)
Environment
Server - Azure Pipelines or TFS on-premises? Azure Pipelines
If using Hosted agent, provide agent queue name: Azure Pipelines
Issue Description
My team is using the content of the output variable "Docker.Output" to do further processing with its content, we have face cases where the value of this variable is empty even though the execution was successful
For example
Looking at that build telemetry we found that the Docker.Output variable was empty
The text was updated successfully, but these errors were encountered:
Hi @jcfiorenzano,
In the build you shared, I see that ReferenceName is not set for the Docker tasks.
Can you please verify whether the task ReferenceName is set correctly in the pipelines? [Reference]
Short: This is expected for DockerV0 and DockerV1. Waiting for @jcfiorenzano to share the debug logs with DockerV2.
Long:
The behaviour of output variable was different for older versions of the Docker task (DockerV0 and DockerV1). It stored the output of the Docker command in the variable (and not a file path). Also, they didn’t support all commands (Docker build/push etc would output empty) and skip writing the variable if the output is too large (env variable max length).
This was changed in DockerV2. In DockerV2, we started writing the output to a file and set the DockerOutput as the output file path.
The logs shared (offline) were for DockerV1. To investigate further, need debug logs where DockerV2 is being used and the issue is happening.
ReferenceName was not the issue as the behaviour is: "If there is one instance of task in the job, it gets the name Docker.DockerOutput, and if there are multiple, they get the names Docker1.DockerOutput, Docker2.DockerOutput and so on"
Required Information
Question, Bug, or Feature?
Type: Bug
Enter Task Name: DockerV1(1.181.0) , DockerV2 (2.182.0)
Environment
Server - Azure Pipelines or TFS on-premises? Azure Pipelines
Issue Description
My team is using the content of the output variable "Docker.Output" to do further processing with its content, we have face cases where the value of this variable is empty even though the execution was successful
For example
Looking at that build telemetry we found that the Docker.Output variable was empty
The text was updated successfully, but these errors were encountered: