Referencing resources.containers via script doesn't work anymore today. I just suddenly stopped working today. The below are from official Azure documentation:
https://learn.microsoft.com/en-us/azure/devops/pipelines/process/resources?view=azure-devops
resources:
containers:
- container: mycontainer
type: ACR
azureSubscription: arm-connection
resourceGroup: rg-storage-eastus
registry: mycontainerregistry
repository: hello-world
trigger:
tags:
- latest
steps:
- script: echo |
echo $(resources.container.mycontainer.type)
echo $(resources.container.mycontainer.registry)
echo $(resources.container.mycontainer.repository)
echo $(resources.container.mycontainer.tag)
echo $(resources.container.mycontainer.digest)
echo $(resources.container.mycontainer.URI)
echo $(resources.container.mycontainer.location)
Output:
Starting: CmdLine2
==============================================================================
Task : Command line
Description : Run a command line script using Bash on Linux and macOS and cmd.exe on Windows
Version : 2.237.1
Author : Microsoft Corporation
Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/command-line
==============================================================================
Generating script.
Script contents:
echo | echo $(resources.container.mycontainer.type) echo $(resources.container.mycontainer.registry) echo $(resources.container.mycontainer.repository) echo $(resources.container.mycontainer.tag) echo $(resources.container.mycontainer.digest) echo $(resources.container.mycontainer.URI) echo $(resources.container.mycontainer.location)
========================== Starting Command Output ===========================
/usr/bin/bash --noprofile --norc /azp/_work/_temp/11182f8b-6bc4-4823-b4d8-54139b639573.sh
/azp/_work/_temp/11182f8b-6bc4-4823-b4d8-54139b639573.sh: line 1: resources.container.mycontainer.type: command not found
/azp/_work/_temp/11182f8b-6bc4-4823-b4d8-54139b639573.sh: line 1: resources.container.mycontainer.registry: command not found
/azp/_work/_temp/11182f8b-6bc4-4823-b4d8-54139b639573.sh: line 1: resources.container.mycontainer.repository: command not found
/azp/_work/_temp/11182f8b-6bc4-4823-b4d8-54139b639573.sh: line 1: resources.container.mycontainer.tag: command not found
/azp/_work/_temp/11182f8b-6bc4-4823-b4d8-54139b639573.sh: line 1: resources.container.mycontainer.digest: command not found
/azp/_work/_temp/11182f8b-6bc4-4823-b4d8-54139b639573.sh: line 1: resources.container.mycontainer.URI: command not found
/azp/_work/_temp/11182f8b-6bc4-4823-b4d8-54139b639573.sh: line 1: resources.container.mycontainer.location: command not found
echo echo echo echo echo echo
Finishing: CmdLine2
Also, today I noticed KubernetesManifest@0 is deprecated. Could it be something was changed when this is deprecated?