Skip to content

[BUG]: CacheV2: Unable to find pipeline caching scopes #21567

@chris-pinola-rf

Description

@chris-pinola-rf

New issue checklist

Task name

CacheV2

Task version

2.198.0

Issue Description

Same as #13420 which I believe was closed erroneously. We still cannot use the CacheV2 task from a deployment YAML pipeline, which I need to enforce concurrency limitations via an Environment resource.

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

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Ubuntu 24.04

Relevant log output

Starting: Cache Terraform Providers
==============================================================================
Task         : Cache
Description  : Cache files between runs
Version      : 2.198.0
Author       : Microsoft Corporation
Help         : https://aka.ms/pipeline-caching-docs
==============================================================================
Resolving key:
 - terraform-providers                               [string]
 - "Linux"                                           [string]
 - /work/4/s/dev/app/infra/mysql/.terraform.lock.hcl [file] --> FA77A456A0400F6DD2CADC9EFA5E0F6BF651E843C2C99D3ACF053482CB353EBA
Resolved to: terraform-providers|"Linux"|igStDDCig3Ly4gylHlT2Wc404/a0F8JEHS4Y8t3dgD8=
Using default max parallelism.
Max dedup parallelism: 192
DomainId: 0
ApplicationInsightsTelemetrySender will correlate events with X-TFS-Session ea918b6a-a1bd-4d01-9a93-5165c6c67d00
Hashtype: Dedup64K
Getting a pipeline cache artifact with one of the following fingerprints:
Fingerprint: `terraform-providers|"Linux"|igStDDCig3Ly4gylHlT2Wc404/a0F8JEHS4Y8t3dgD8=`
ApplicationInsightsTelemetrySender correlated 2 events with X-TFS-Session ea918b6a-a1bd-4d01-9a93-5165c6c67d00
##[error]Unable to find pipeline caching scopes.
Finishing: Cache Terraform Providers

Full task logs with system.debug enabled

Please see the original issue, there is plenty of good debugging info there: #13420

Repro steps

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions