Skip to content

Commit 5d0a02c

Browse files
committed
adding ado pipeline
1 parent d5abe66 commit 5d0a02c

2 files changed

Lines changed: 56 additions & 0 deletions

File tree

.pipelines/ci.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
trigger:
2+
branches:
3+
include:
4+
- main
5+
- dev/**
6+
tags:
7+
exclude:
8+
- '*'
9+
pr: none
10+
11+
resources:
12+
repositories:
13+
- repository: 1esPipelines
14+
type: git
15+
name: 1ESPipelineTemplates/1ESPipelineTemplates
16+
ref: refs/tags/release
17+
18+
extends:
19+
template: v1/1ES.Unofficial.PipelineTemplate.yml@1esPipelines
20+
parameters:
21+
# SDL/compliance (PoliCheck, CredScan, Roslyn, BinSkim, etc.) is provided
22+
# by the 1ES template. Source analysis runs on this pool.
23+
sdl:
24+
sourceAnalysisPool:
25+
name: Azure-Pipelines-1ESPT-ExDShared
26+
image: windows-latest
27+
os: windows
28+
stages:
29+
- stage: Build
30+
jobs:
31+
- job: Build
32+
pool:
33+
name: Azure-Pipelines-1ESPT-ExDShared
34+
image: windows-latest
35+
os: windows
36+
hostArchitecture: amd64
37+
steps:
38+
- checkout: self
39+
- task: UseDotNet@2
40+
displayName: Setup .NET 10
41+
inputs:
42+
version: 10.0.x
43+
- template: ./.pipelines/templates/build.yaml@self

.pipelines/templates/build.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Builds the C# tools in this repo so SDL/compliance scanners (PoliCheck,
2+
# CredScan, Roslyn, BinSkim, etc.) injected by the 1ES template have source
3+
# and binaries to analyze. This pipeline is compliance-only: it does not
4+
# publish artifacts, sign anything, or produce releases. PR validation lives
5+
# in .github/workflows/pr-validation.yml.
6+
7+
steps:
8+
- task: PowerShell@2
9+
displayName: Build C# tools (analyzer, winmd-cli, winui-search)
10+
inputs:
11+
pwsh: true
12+
filePath: $(System.DefaultWorkingDirectory)\scripts\build-tools.ps1
13+
arguments: '-SkipPayloadRefresh'

0 commit comments

Comments
 (0)