microsoft / azure-pipelines-agent

Azure Pipelines Agent 🚀
MIT License
1.7k stars 856 forks source link

[BUG]: variables substitution for container jobs resolves to agent-job paths #4625

Open ThijsBroersen opened 5 months ago

ThijsBroersen commented 5 months ago

What happened?

I tried adding variables via a template, e.g.

- job: myjob
  container: mycontainer
  variables:
    - template: myvars.yml

Within myvars.yml I am trying to get $(Pipeline.Workspace), but this resolves to /agent/_work/1 instead of the expected /__w/1 for a container job.

Versions

latest ubuntu

Environment type (Please select at least one enviroment where you face this issue)

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

No response

Version controll system

No response

Relevant log output

No response

max-zaytsev commented 5 months ago

Hi @ThijsBroersen , thanks for reporting! We are working on more prioritized issues at the moment, but will get back to this one soon.