1
0
mirror of synced 2025-12-25 02:14:57 -05:00

Migrate build pipeline to yml with 1ES template (#9232)

* Migrate build pipeline to yml with 1ES template

* Update Azure Pipelines configuration
This commit is contained in:
Dan Zhu
2024-03-22 11:38:50 -07:00
committed by GitHub
parent cb36e6d286
commit 24cabfda69

49
azure-pipelines.yml Normal file
View File

@@ -0,0 +1,49 @@
trigger:
branches:
include:
- '*'
paths:
include:
- release-notes/releases-index.json
- release-notes/**/releases.json
batch: True
name: $(date:yyyyMMdd)$(rev:.r)
resources:
repositories:
- repository: self
type: git
ref: refs/heads/main
- repository: 1ESPipelineTemplates
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release
extends:
template: v1/1ES.Official.PipelineTemplate.yml@1ESPipelineTemplates
parameters:
pool:
name: 1es-default-pool
image: 1es-agent-image
os: windows
customBuildTags:
- ES365AIMigrationTooling
stages:
- stage: stage
jobs:
- job: Job_1
displayName: Build
templateContext:
outputs:
- output: pipelineArtifact
displayName: 'Publish Artifacts'
artifactName: dotnet-core-release-metadata-drop
targetPath: $(build.artifactstagingdirectory)
steps:
- checkout: self
fetchTags: true
- task: CopyFiles@2
displayName: Copy files to publish
inputs:
Contents: |-
**\release-notes\releases-index.json
**\release-notes\**\releases.json
TargetFolder: $(build.artifactstagingdirectory)