Environment variable not injected into multi stage docker build on Azure Devops pipeline
问题 I have a docker file that I can build locally without issues, on Azure Devops the variable is not set properly. E.g. locally I can run a multi-stage docker build where artifacts are fetched from an Azure artifact repository with authorization. The authorization token can be set locally without issues. On the build pipeline I haven't been able to inject it properly. The docker file: FROM gradle:5.4.1-jdk8 AS build ARG AZURE_ARTIFACTS_ENV_ACCESS_TOKEN ENV AZURE_ARTIFACTS_ENV_ACCESS_TOKEN $AZURE