Skip to content

AGENT_TOOLSDIRECTORY override environment variable in self-hosted linux vm doesn't work #247

@xinyuxu1026

Description

@xinyuxu1026

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:

- task: UsePythonVersion@0
  name: UsePythonVersion
  displayName: Use Python 3.x
  env:
    AGENT_TOOLSDIRECTORY: /opt/hostedtoolscache

But it still complaining under the default tool directory:

##[error]Version spec 3.x for architecture x64 did not match any version in Agent.ToolsDirectory.
Versions in /mnt/vss/_work/_tool:

How should I override the AGENT_TOOLSDIRECTORY environment variable? Thanks.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions