-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AGENT_TOOLSDIRECTORY override environment variable in self-hosted linux vm doesn't work #247
Comments
@xinyuxu1026, according to the documentation, it is necessary for you to specify directory structure as follows:
Could you please confirm that the directory structure is specified as in the above example? |
@ivanduplenskikh , thanks, yes I confirm that I have that directory structure. |
@xinyuxu1026, could you try to override this variable in the variables block? variables:
AGENT_TOOLSDIRECTORY: "path_to_the_custom_directory_with"
steps:
- task: UsePythonVersion@0
name: UsePythonVersion
displayName: Use Python 3.x You can also try to create .env file for the individual agent. |
Hi @xinyuxu1026, thank you for your question!
Please notice that scopes for the environment variables have following priorities:
However, please note that We also noticed race condition bug in the agent, when in some cases, the custom |
Thanks @vmapetr , I tried to use the root variables here. The azure pipeline pool(ubuntu) works well, but the 1es hosted pool job is still looking for |
Hi @vmapetr , is there any update on this issue? Thanks. |
Hi @xinyuxu1026, sorry for the delayed response. |
Hi,
I have a 1es hosted pool with RHEL 8, and I installed python under /opt/hostedtoolscache, currently I need to run
UsePythonVersion@0
job with the override AGENT_TOOLSDIRECTORY as instructed.Here is my job:
But it still complaining under the default tool directory:
How should I override the AGENT_TOOLSDIRECTORY environment variable? Thanks.
The text was updated successfully, but these errors were encountered: