Skip to content

Complete task as SucceededWithIssues if there's at least one warning. #163

Closed
@tvardero

Description

@tvardero

Echo this command if eslint produced at least one warnings (not error, we already exit with non-zero):

echo "##vso[task.complete result=SucceededWithIssues;]"

This results in pipeline finishing not with "green check" label, but with "yellow exclamation mark".

image

https://learn.microsoft.com/en-us/azure/devops/pipelines/scripts/logging-commands?view=azure-devops&tabs=bash#complete-finish-timeline
https://techcommunity.microsoft.com/t5/azure-devops/complete-pipeline-execution-with-warning/m-p/3748795

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions