Skip to content

[BUG]: AzureCLI v2 task doesn't react to cancellation #20975

@webczat

Description

@webczat

New issue checklist

Task name

AzureCLI

Task version

2

Issue Description

When a pipeline is cancelled during execution of AzureCLI task, it seems like the bash doesn't receive any signal like sigint/sigterm, so it's not possible to do graceful shutdown.
Main use case is terraform where graceful shutdown is important.

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

Relevant log output

I don't have access to any logs at the moment of writing this issue, but generally when task is cancelled I see nothing other than cancellation notices.

Full task logs with system.debug enabled

Details
 [REPLACE THIS WITH YOUR INFORMATION] 

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