-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
49 lines (47 loc) · 2.65 KB
/
azure-pipelines.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
41
42
43
44
45
46
47
48
49
trigger:
branches:
include:
- main
- feature/*
tags:
include:
- '*'
resources:
repositories:
- repository: recommended_practices
type: github
name: endjin/Endjin.RecommendedPractices.AzureDevopsPipelines.GitHub
endpoint: endjin-github
jobs:
- template: templates/build.and.release.scripted.yml@recommended_practices
parameters:
vmImage: 'ubuntu-latest'
service_connection_nuget_org: $(Endjin_Service_Connection_NuGet_Org)
service_connection_github: $(Endjin_Service_Connection_GitHub)
solution_to_build: $(Endjin_Solution_To_Build)
netSdkVersion: '6.x'
compileTasksServiceConnection: endjin-acr-reader
# Allow the path to nupkgversionToolPath to be overridden. As nupkgversionToolPath is part of the recommended build, we get caught in a boostrapping loop
# when we need to make updates to the tool. We enable the build to make use of the current build artefact version of the tool.
nupkgversionToolPath: 'dotnet $(Build.SourcesDirectory)/Solutions/Endjin.SemVer.DotNetApi.Cli/bin/$(BuildConfiguration)/net6.0/nupkgversion.dll'
postBuild:
- pwsh: |
Write-Host "**** Versions of Endjin.SemVer.DotNetApi"
gci -recurse Endjin.SemVer.DotNetApi.dll | % { Write-Host ("{1} => {0}" -f $_.FullName, ([Reflection.AssemblyName]::GetAssemblyName($_.FullName)).Version) }
Write-Host "**** Versions of nupkgversion"
gci -recurse nupkgversion.dll | % { Write-Host ("{1} => {0}" -f $_.FullName, ([Reflection.AssemblyName]::GetAssemblyName($_.FullName)).Version) }
displayName: Debug assembly versions after build
postRunExecutableSpecs:
- pwsh: |
Write-Host "**** Versions of Endjin.SemVer.DotNetApi"
gci -recurse Endjin.SemVer.DotNetApi.dll | % { Write-Host ("{1} => {0}" -f $_.FullName, ([Reflection.AssemblyName]::GetAssemblyName($_.FullName)).Version) }
Write-Host "**** Versions of nupkgversion"
gci -recurse nupkgversion.dll | % { Write-Host ("{1} => {0}" -f $_.FullName, ([Reflection.AssemblyName]::GetAssemblyName($_.FullName)).Version) }
displayName: Debug assembly versions after test
postPack:
- pwsh: |
Write-Host "**** Versions of Endjin.SemVer.DotNetApi"
gci -recurse Endjin.SemVer.DotNetApi.dll | % { Write-Host ("{1} => {0}" -f $_.FullName, ([Reflection.AssemblyName]::GetAssemblyName($_.FullName)).Version) }
Write-Host "**** Versions of nupkgversion"
gci -recurse nupkgversion.dll | % { Write-Host ("{1} => {0}" -f $_.FullName, ([Reflection.AssemblyName]::GetAssemblyName($_.FullName)).Version) }
displayName: Debug assembly versions after pack