acraven / azure-dependabot

Companion to Updating dependencies in Azure DevOps repos
58 stars 17 forks source link

Version spec =2.6.2 for architecture %25s did not match any version in Agent.ToolsDirectory. #15

Open yellowpanda opened 3 years ago

yellowpanda commented 3 years ago

Microsoft-Hosted agents do no longer contain version 2.6.2 of Ruby.

- task: UseRubyVersion@0
  inputs:
    versionSpec: '=2.6.2'

Produce this output:

2021-03-22T09:54:06.3263262Z ##[section]Starting: UseRubyVersion
2021-03-22T09:54:06.3272459Z ==============================================================================
2021-03-22T09:54:06.3272872Z Task         : Use Ruby version
2021-03-22T09:54:06.3273204Z Description  : Use the specified version of Ruby from the tool cache, optionally adding it to the PATH
2021-03-22T09:54:06.3273511Z Version      : 0.182.0
2021-03-22T09:54:06.3273809Z Author       : Microsoft Corporation
2021-03-22T09:54:06.3274134Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/tool/use-ruby-version
2021-03-22T09:54:06.3274502Z ==============================================================================
2021-03-22T09:54:06.8521248Z ##[warning]It is not recommended to specify exact version on Microsoft-Hosted agents. Patch version of Ruby can be replaced by new one on Hosted agents without notice and build stops to work. it is recommended to specify only major or major and minor version (Example: `2` or `2.4`)
2021-03-22T09:54:06.8570903Z ##[error]Version spec =2.6.2 for architecture %25s did not match any version in Agent.ToolsDirectory.
Available versions: /opt/hostedtoolcache
2.4.10,2.5.8,2.6.6,2.7.2,3.0.0
If this is a Microsoft-hosted agent, check that this image supports side-by-side versions of Ruby at https://aka.ms/hosted-agent-software.
If this is a self-hosted agent, see how to configure side-by-side Ruby versions at https://go.microsoft.com/fwlink/?linkid=2005989.
2021-03-22T09:54:06.8607893Z ##[section]Finishing: UseRubyVersion