Skip to content

Commit

Permalink
[1ES] Add new CI files for worker extensions (#2472)
Browse files Browse the repository at this point in the history
  • Loading branch information
liliankasem authored May 21, 2024
1 parent b78a64a commit 25b6105
Show file tree
Hide file tree
Showing 37 changed files with 1,849 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eng/ci/templates/official/jobs/build-extension-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
custom: build
arguments: -p:BuildNumber=$(buildNumber) -c release
projects: |
extensions/**/${{ parameters.ExtensionProjectName }}.csproj
extensions/${{ parameters.ExtensionProjectName }}/src/*.csproj
- task: EsrpCodeSigning@2
displayName: Sign assemblies
Expand Down Expand Up @@ -80,14 +80,14 @@ jobs:
custom: pack
arguments: '--no-build -c release -o $(Build.ArtifactStagingDirectory)/NugetPackages -p:BuildNumber=$(buildNumber)'
projects: |
extensions/**/${{ parameters.ExtensionProjectName }}.csproj
extensions/${{ parameters.ExtensionProjectName }}/src/*.csproj
- task: EsrpCodeSigning@2
displayName: Sign nuget packages
inputs:
ConnectedServiceName: ESRP Service-internal
FolderPath: $(Build.ArtifactStagingDirectory)/NugetPackages
Pattern: Microsoft.Azure.Functions.Worker*.nupkg
Pattern: Microsoft.Azure.Functions.Worker.Extensions*.nupkg
signConfigType: inlineSignParams
inlineOperation: |
[
Expand Down
54 changes: 54 additions & 0 deletions extensions/Worker.Extensions.Abstractions/ci/official-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
trigger:
batch: true
branches:
include:
- main
- release/*
paths:
include:
- eng/
- extensions/Worker.Extensions.Abstractions/
- test/Worker.Extensions.Tests/

# CI only, does not trigger on PRs.
pr: none

resources:
repositories:
- repository: 1es
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release
- repository: eng
type: git
name: engineering
ref: refs/tags/release

variables:
- template: ci/variables/build.yml@eng
- template: ci/variables/cfs.yml@eng
- name: ExtensionProjectName
value: Worker.Extensions.Abstractions

extends:
template: v1/1ES.Official.PipelineTemplate.yml@1es
parameters:
pool:
name: 1es-pool-azfunc
image: 1es-windows-2022
os: windows

stages:

- stage: BuildTest
displayName: 'Build & Test'

jobs:
- template: /eng/ci/templates/official/jobs/build-extension-artifacts.yml@self
parameters:
ExtensionProjectName: $(ExtensionProjectName)

- template: /eng/ci/templates/jobs/run-extension-tests.yml@self
parameters:
ExtensionProjectName: $(ExtensionProjectName)
HasOwnTestProject: false
54 changes: 54 additions & 0 deletions extensions/Worker.Extensions.Abstractions/ci/public-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# This build is used for public PR and CI builds.

trigger:
batch: true
branches:
include:
- main
- release/*
- feature/*
paths:
include:
- eng/
- extensions/Worker.Extensions.Abstractions/
- test/Worker.Extensions.Tests/

pr:
branches:
include:
- main
- release/*
- feature/*
include:
- eng/
- extensions/Worker.Extensions.Abstractions/
- test/Worker.Extensions.Tests/

resources:
repositories:
- repository: 1es
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release

variables:
- template: /eng/ci/templates/variables/build.yml@self
- name: ExtensionProjectName
value: Worker.Extensions.Abstractions

extends:
template: v1/1ES.Unofficial.PipelineTemplate.yml@1es
parameters:
pool:
name: 1es-pool-azfunc-public
image: 1es-windows-2022
os: windows

stages:
- stage: Test

jobs:
- template: /eng/ci/templates/jobs/run-extension-tests.yml@self
parameters:
ExtensionProjectName: $(ExtensionProjectName)
HasOwnTestProject: false
54 changes: 54 additions & 0 deletions extensions/Worker.Extensions.CosmosDB/ci/official-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
trigger:
batch: true
branches:
include:
- main
- release/*
paths:
include:
- eng/
- extensions/Worker.Extensions.CosmosDB/
- test/Worker.Extensions.Tests/

# CI only, does not trigger on PRs.
pr: none

resources:
repositories:
- repository: 1es
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release
- repository: eng
type: git
name: engineering
ref: refs/tags/release

variables:
- template: ci/variables/build.yml@eng
- template: ci/variables/cfs.yml@eng
- name: ExtensionProjectName
value: Worker.Extensions.CosmosDB

extends:
template: v1/1ES.Official.PipelineTemplate.yml@1es
parameters:
pool:
name: 1es-pool-azfunc
image: 1es-windows-2022
os: windows

stages:

- stage: BuildTest
displayName: 'Build & Test'

jobs:
- template: /eng/ci/templates/official/jobs/build-extension-artifacts.yml@self
parameters:
ExtensionProjectName: $(ExtensionProjectName)

- template: /eng/ci/templates/jobs/run-extension-tests.yml@self
parameters:
ExtensionProjectName: $(ExtensionProjectName)
HasOwnTestProject: false
54 changes: 54 additions & 0 deletions extensions/Worker.Extensions.CosmosDB/ci/public-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# This build is used for public PR and CI builds.

trigger:
batch: true
branches:
include:
- main
- release/*
- feature/*
paths:
include:
- eng/
- extensions/Worker.Extensions.CosmosDB/
- test/Worker.Extensions.Tests/

pr:
branches:
include:
- main
- release/*
- feature/*
include:
- eng/
- extensions/Worker.Extensions.CosmosDB/
- test/Worker.Extensions.Tests/

resources:
repositories:
- repository: 1es
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release

variables:
- template: /eng/ci/templates/variables/build.yml@self
- name: ExtensionProjectName
value: Worker.Extensions.CosmosDB

extends:
template: v1/1ES.Unofficial.PipelineTemplate.yml@1es
parameters:
pool:
name: 1es-pool-azfunc-public
image: 1es-windows-2022
os: windows

stages:
- stage: Test

jobs:
- template: /eng/ci/templates/jobs/run-extension-tests.yml@self
parameters:
ExtensionProjectName: $(ExtensionProjectName)
HasOwnTestProject: false
54 changes: 54 additions & 0 deletions extensions/Worker.Extensions.EventGrid/ci/official-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
trigger:
batch: true
branches:
include:
- main
- release/*
paths:
include:
- eng/
- extensions/Worker.Extensions.EventGrid/
- test/Worker.Extensions.Tests/

# CI only, does not trigger on PRs.
pr: none

resources:
repositories:
- repository: 1es
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release
- repository: eng
type: git
name: engineering
ref: refs/tags/release

variables:
- template: ci/variables/build.yml@eng
- template: ci/variables/cfs.yml@eng
- name: ExtensionProjectName
value: Worker.Extensions.EventGrid

extends:
template: v1/1ES.Official.PipelineTemplate.yml@1es
parameters:
pool:
name: 1es-pool-azfunc
image: 1es-windows-2022
os: windows

stages:

- stage: BuildTest
displayName: 'Build & Test'

jobs:
- template: /eng/ci/templates/official/jobs/build-extension-artifacts.yml@self
parameters:
ExtensionProjectName: $(ExtensionProjectName)

- template: /eng/ci/templates/jobs/run-extension-tests.yml@self
parameters:
ExtensionProjectName: $(ExtensionProjectName)
HasOwnTestProject: false
54 changes: 54 additions & 0 deletions extensions/Worker.Extensions.EventGrid/ci/public-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# This build is used for public PR and CI builds.

trigger:
batch: true
branches:
include:
- main
- release/*
- feature/*
paths:
include:
- eng/
- extensions/Worker.Extensions.EventGrid/
- test/Worker.Extensions.Tests/

pr:
branches:
include:
- main
- release/*
- feature/*
include:
- eng/
- extensions/Worker.Extensions.EventGrid/
- test/Worker.Extensions.Tests/

resources:
repositories:
- repository: 1es
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release

variables:
- template: /eng/ci/templates/variables/build.yml@self
- name: ExtensionProjectName
value: Worker.Extensions.EventGrid

extends:
template: v1/1ES.Unofficial.PipelineTemplate.yml@1es
parameters:
pool:
name: 1es-pool-azfunc-public
image: 1es-windows-2022
os: windows

stages:
- stage: Test

jobs:
- template: /eng/ci/templates/jobs/run-extension-tests.yml@self
parameters:
ExtensionProjectName: $(ExtensionProjectName)
HasOwnTestProject: false
Loading

0 comments on commit 25b6105

Please sign in to comment.