-
Notifications
You must be signed in to change notification settings - Fork 1
/
code-analysis.yaml
46 lines (40 loc) · 962 Bytes
/
code-analysis.yaml
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
40
41
42
43
44
45
46
trigger:
batch: true
branches:
include:
- main
pr:
branches:
include:
- main
schedules:
- cron: '0 0 * * 0'
displayName: Weekly build
branches:
include:
- main
always: true
resources:
repositories:
- repository: OpsGuildAutomationRepo
type: git
name: Engineering/OpsGuild.Automation
ref: refs/heads/main
- repository: templates
type: github
name: osisoft/OSI-Samples
endpoint: osisoft/OSI-Samples
variables:
- name: analysisProject
value: OMF_API_CPP
jobs:
- template: '/miscellaneous/build_templates/code-analysis.yml@templates'
parameters:
buildSteps:
- template: '/miscellaneous/build_templates/appsettings.yml@templates'
- task: NuGetCommand@2
displayName: 'Restore Packages'
inputs:
command: 'restore'
feedsToUse: 'config'
nugetConfigPath: 'nuget.config'