# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.

trigger:
  branches:
    include:
      - main
      - hotfix/*
      - release/*
  paths:
    include:
      - sdk/alertsmanagement/ci.yml
      - sdk/alertsmanagement/azure-resourcemanager-alertsmanagement/
    exclude:
      - sdk/alertsmanagement/pom.xml
      - sdk/alertsmanagement/azure-resourcemanager-alertsmanagement/pom.xml

pr:
  branches:
    include:
      - main
      - feature/*
      - hotfix/*
      - release/*
  paths:
    include:
      - sdk/alertsmanagement/ci.yml
      - sdk/alertsmanagement/azure-resourcemanager-alertsmanagement/
    exclude:
      - sdk/alertsmanagement/pom.xml
      - sdk/alertsmanagement/azure-resourcemanager-alertsmanagement/pom.xml

parameters:
  - name: release_azureresourcemanageralertsmanagement
    displayName: azure-resourcemanager-alertsmanagement
    type: boolean
    default: false

extends:
  template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml
  parameters:
    ServiceDirectory: alertsmanagement
    EnableBatchRelease: true
    Artifacts:
      - name: azure-resourcemanager-alertsmanagement
        groupId: com.azure.resourcemanager
        safeName: azureresourcemanageralertsmanagement
        releaseInBatch: ${{ parameters.release_azureresourcemanageralertsmanagement }}
