-
Notifications
You must be signed in to change notification settings - Fork 58
/
dotnet_build_stage.yml
40 lines (38 loc) · 1.57 KB
/
dotnet_build_stage.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
parameters:
projectNamesConfigurations:
- projectName: ''
publishWebProject: true
dotnetTest: true
efMigrationScript: false
startUpProjectName: ''
projectExtension: '.csproj'
buildArguments: ''
solutionName: ''
serviceName: ''
sdkVersion: ''
zipAppAfterPublish: true
publishArguments: ''
artifactsToPublish: ['infrastructure']
stages:
- stage: '${{ parameters.serviceName }}_build'
variables:
solutionPath: '$(Build.SourcesDirectory)/${{ parameters.solutionName }}/'
jobs:
- ${{ each artifactToPublish in parameters.artifactsToPublish }} :
- template: ../jobs/artifact_publish_job.yml
parameters:
targetPath: ${{ artifactToPublish }}
artifactname: ${{ artifactToPublish }}
- ${{ each projectNamesConfiguration in parameters.projectNamesConfigurations }} :
- template: ../jobs/dotnetcore_build_publish_job.yml
parameters:
solutionName: ${{ parameters.solutionName }}
projectName: ${{replace(projectNamesConfiguration.projectName,'.','_')}}
publishWebProject: ${{ projectNamesConfiguration.publishWebProject }}
sdkVersion: ${{ parameters.sdkVersion }}
dotNetTest: ${{ projectNamesConfiguration.dotnetTest }}
zipAfterPublish: ${{ parameters.zipAppAfterPublish }}
publishArguments: ${{ parameters.publishArguments }}
startUpProjectName: ${{ projectNamesConfiguration.startUpProjectName }}
projectExtension: ${{ projectNamesConfiguration.projectExtension }}
buildArguments: ${{ projectNamesConfiguration.buildArguments }}