-
Notifications
You must be signed in to change notification settings - Fork 106
/
azure-pipelines.yml
39 lines (36 loc) · 1.01 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Analytics Rules build and deploy pipeline
# This pipeline publishes the rules file as an artifact and then uses a powershell task to deploy
name: build and deploy Alert Rules
resources:
pipelines:
- pipeline: Scripts
source: 'scriptsCI'
trigger:
paths:
include:
- AnalyticsRules/*
stages:
- stage: build_alert_rules
jobs:
- job: AgentJob
pool:
name: Azure Pipelines
vmImage: 'vs2017-win2016'
steps:
- task: CopyFiles@2
displayName: 'Copy Alert Rules'
inputs:
SourceFolder: AnalyticsRules
TargetFolder: '$(Pipeline.Workspace)'
- task: Files-Validator@1
inputs:
rootDir: '$(Pipeline.Workspace)/*.json'
validateXML: false
validateJSON: true
validateYAML: false
validatePS: false
- task: PublishBuildArtifacts@1
displayName: 'Publish Artifact: RulesFile'
inputs:
PathtoPublish: '$(Pipeline.Workspace)'
ArtifactName: RulesFile