Skip to content

[REGRESSION]: HelmDeploy@1 and HelmDeploy@0 stopped working with environment #20791

Open
@PAKalucki

Description

New issue checklist

Task name

HelmDeploy

Breaking task version

1.250.1
0.250.1

Last working task version

0.247.3

Regression Description

Both HelmDeploy@1 and HelmDeploy@0 started to ignore environment https://learn.microsoft.com/en-us/azure/devops/pipelines/process/environments?view=azure-devops#target-a-specific-environment-resource-from-a-deployment-job

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 22.04

Relevant log output

Starting: Helm upgrade
==============================================================================
Task         : Package and deploy Helm charts
Description  : Deploy, configure, update a Kubernetes cluster in Azure Container Service by running helm commands
Version      : 1.250.1
Author       : Microsoft Corporation
Help         : https://aka.ms/azpipes-helm-tsg
==============================================================================
##[error]Error: Input required: kubernetesCluster
Finishing: Helm upgrade

Full task logs with system.debug enabled

UNSUCCESSFUL RUN
 [REPLACE THIS WITH YOUR INFORMATION] 
SUCCESSFUL RUN
 Starting: Helm upgrade
==============================================================================
Task         : Package and deploy Helm charts
Description  : Deploy, configure, update a Kubernetes cluster in Azure Container Service by running helm commands
Version      : 0.247.3
Author       : Microsoft Corporation
Help         : https://aka.ms/azpipes-helm-tsg
==============================================================================
/usr/local/bin/helm upgrade --namespace test --install --wait test /home/vsts/work/1/s/test
Release "test" has been upgraded. Happy Helming!
NAME: test
LAST DEPLOYED: Mon Jan 20 11:07:46 2025
NAMESPACE: test
STATUS: deployed
REVISION: 6
TEST SUITE: None 

Repro steps

jobs:
  - deployment: Deploy
    displayName: Deploy to Kubernetes
    pool:
      vmImage: ubuntu-latest
    environment: 
      name: test
      resourceType: Kubernetes
      resourceName: test
    strategy:
      runOnce:
        deploy:
          steps:
          - checkout: self

          - task: HelmDeploy@1
            displayName: Helm upgrade
            inputs:
              namespace: default
              command: upgrade
              chartType: filepath
              chartPath: test
              releaseName: test
              install: true
              waitForExecution: true

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions