Open MaximilianGuttmann opened 4 months ago
Thanks for the reporting! We are working on higher priority issues now, but we'll get back to this one soon
Hi @MaximilianGuttmann! This bug will be fixed in the next version of the agent. Thanks for the reporting!
Hi @DenisNikulin5 any update on this? The last agent version release notes v3.243.0 don't cite the current issue. Thank you
Hi @gidad! The release note for this is v3.243.0 Misc -> Remove AZP_AGENT_MOUNT_WORKSPACE knob (https://github.com/microsoft/azure-pipelines-agent/pull/4906)
We changed the behavior a bit to fix the bug :)
What happened?
Hey, I have observed a bug where the my self hosted agent mounts only the source directory
/opt/azagent/_work/1/s
into the container instead of the pipeline workspace/opt/azagent/_work/1/
. This leads to the Default Working Directory being/opt/azagent/_work/1/s/checkedOutRepo
.The problem only occurs if you have 2 jobs with the first one checking out the repository into a specific path and the second job running on the same agent as the first job ran. To ensure that the second job runs on the same agent I divided both jobs into seperate stages. I also created a simple pipeline that reproduces this bug:
The bug does not occur if the second job is executed on another agent. So in this example only one job of the second stage mounts the directory in the wrong place.
There was already such an issue in the past though I don't think that it is not exactly the same. https://github.com/microsoft/azure-pipelines-agent/issues/4479
Versions
Agent Version: 3.242.0 Agent OS: Linux
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
Azure DevOps Server (Please specify exact version in the textbox below)
Azure DevOps Server Version (if applicable)
Azure DevOps Server 2022.1
Operation system
No response
Version controll system
git
Relevant log output