Version of your agent? 2.144.0
OS of the machine running the agent? Linux; Ubuntu 16.04 with Docker
Azure Pipelines
Following up from https://github.com/cake-build/cake/issues/2432, the container job in Cake.Dungeon/azure-pipelines.yml#L6-L17 uses cake-build/cake and is not working as expected because the TF_BUILD environment variable has not been passed to the Docker container.
See Cake.Dungeon/#20190107.3/Docker job for all the build step environment variables, which have been logged as seen from inside the container. Note that the TF_BUILD environment variable is missing.
For comparison, Cake.Dungeon/#20190107.3/Linux job and Cake.Dungeon/#20190107.3/Windows job, are both run directly on the agent and see the TF_BUILD environment variable.
The TF_BUILD environment variable is required for Cake build to correctly detect if it is running on Azure Pipelines and affects subsequent build behavior such as only publishing artifacts when detected.
@gitfool thanks for reporting this. we will fix this.
@TingluoHuang thanks for the fast turnaround! Any idea when it will be deployed? (I鈥檓 not sure if you鈥檙e continuously deploying to production.)
it's going to be part of next agent version release, but may take a while (2/3 weeks), since the current version haven't finish release to entire service due to holiday season deployment delay.
FTR, workaround removed as fixed in azure pipelines agent 2.146.0 deployed ~Feb 6. Thanks again!
Most helpful comment
it's going to be part of next agent version release, but may take a while (2/3 weeks), since the current version haven't finish release to entire service due to holiday season deployment delay.