Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,347 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi Everyone,
Can someone please share sample yaml for build pipeline for .Net 8 isolated Azure function
I need it too!
name: $(Date:yyyyMMdd).$(Rev:r)
variables:
- group: ESRP-5c8***
- name: BuildConfiguration
value: release
- name: system.debug
value: false
resources:
repositories:
- repository: 1esPipelines
type: git
name: 1ESPipelineTemplates/1ESPipelineTemplates
ref: refs/tags/release
trigger: none
parameters:
- name: debug
type: boolean
default: false
values:
- false
extends:
template: v1/1ES.Official.PipelineTemplate.yml@1esPipelines
parameters:
pool:
os: Windows
name: BuildProd-m3t-Win2022-Mms-1ESPT-wus3
stages:
- stage: Build
jobs:
- job: Job_1
displayName: Agent job
templateContext:
outputs:
- output: pipelineArtifact
targetPath: $(Build.ArtifactStagingDirectory)
displayName: Publish Artifact
steps:
- checkout: self
clean: true
fetchDepth: 0
- task: GitVersionVnext@4
displayName: GitVersion
enabled: False
- task: DotNetCoreCLI@2
displayName: Restore
inputs:
command: restore
projects: <Relative path of project>.csproj
selectOrConfig: config
nugetConfigPath: <Nuget Config Folder Path>/NuGet.Config
- task: DotNetCoreCLI@2
displayName: Build
inputs:
projects: <Path to project>.csproj
arguments: --configuration $(BuildConfiguration)
- task: CopyFiles@2
displayName: Copy to drop Folder
inputs:
SourceFolder: 'Application\Ess.Insights.Portal.ManualSignService\Ess.Insights.Portal.ManualSignService\bin\Release\net8.0'
Contents: '**'
TargetFolder: '$(build.artifactstagingdirectory)\ManualSignService'
CleanTargetFolder: true
- task: ArchiveFiles@2
displayName: Create Zip Package
inputs:
rootFolderOrFile: '$(build.artifactstagingdirectory)\ManualSignService'
includeRootFolder: false
archiveType: 'zip'
archiveFile: '$(Build.ArtifactStagingDirectory)/Ess.Insights.Portal.ManualSignService.zip'
replaceExistingArchive: true
- task: securedevelopmentteam.vss-secure-development-tools.build-task-roslynanalyzers.RoslynAnalyzers@2
displayName: Run Roslyn Analyzers
enabled: False