1
+ name : OSSGadget_PR_$(SourceBranchName)_$(Date:yyyyMMdd)$(Rev:.r)
2
+ trigger : none
3
+ pr :
4
+ branches :
5
+ include :
6
+ - main
7
+
8
+ resources :
9
+ repositories :
10
+ - repository : templates
11
+ type : git
12
+ name : SecurityEngineering/OSS-Tools-Pipeline-Templates
13
+ # ref: refs/tags/v1.1.1
14
+ ref : refs/heads/gfs/UpdateTemplates
15
+ - repository : 1esPipelines
16
+ type : git
17
+ name : 1ESPipelineTemplates/1ESPipelineTemplates
18
+ ref : refs/tags/release
19
+
20
+ variables :
21
+ BuildConfiguration : ' Release'
22
+ dotnetVersion : ' 8.0.x'
23
+
24
+ extends :
25
+ template : v1/1ES.Official.PipelineTemplate.yml@1esPipelines
26
+ parameters :
27
+ pool :
28
+ name : MSSecurity-1ES-Build-Agents-Pool
29
+ image : MSSecurity-1ES-Windows-2022
30
+ os : windows
31
+ stages :
32
+ - stage : Test
33
+ dependsOn : []
34
+ jobs :
35
+ - template : dotnet-test-job.yml@templates
36
+ parameters :
37
+ jobName : ' dotnet_test_windows'
38
+ dotnetVersions : ['6.0.x','7.0.x','8.0.x']
39
+ poolName : MSSecurity-1ES-Build-Agents-Pool
40
+ poolImage : MSSecurity-1ES-Windows-2022
41
+ poolOs : windows
42
+ projectPath : ' src/oss-tests/oss-tests.csproj'
43
+
44
+ - stage : Build
45
+ dependsOn :
46
+ - Test
47
+ jobs :
48
+ - template : dotnet-build-job.yml@templates
49
+ parameters :
50
+ buildTool : ' dotnet'
51
+ buildConfiguration : ' Release'
52
+ dotnetVersion : ' 8.0.x'
53
+ targetFramework : ' net8.0'
54
+ projectPath : ' src/OSSGadget.sln'
55
+ projectName : ' OSSGadget'
56
+ poolName : MSSecurity-1ES-Build-Agents-Pool
57
+ poolImage : MSSecurity-1ES-Windows-2022
58
+ poolOs : windows
59
+ artifactName : ' OSSGadget-archive'
60
+ preBuild :
61
+ - template : nbgv-set-version-steps.yml@templates
0 commit comments