1
1
trigger :
2
2
tags :
3
- include : [ 'aspnetcore-v*', 'mediatr -v*', 'appinsights -v*', 'swagger-v*' ]
3
+ include : [ 'appinsights-v*', ' aspnetcore-v*', 'masstransitaz -v*', 'mediatr -v*', 'swagger-v*' ]
4
4
5
5
pool : Default
6
6
@@ -17,12 +17,14 @@ variables:
17
17
- group : Nuget
18
18
- name : buildConfiguration
19
19
value : ' Release'
20
+ - name : project.AppInsights
21
+ value : ' Kros.ApplicationInsights.Extensions'
20
22
- name : project.AspNetCore
21
23
value : ' Kros.AspNetCore'
24
+ - name : project.MassTransitAzure
25
+ value : ' Kros.MassTransit.AzureServiceBus'
22
26
- name : project.MediatR
23
27
value : ' Kros.MediatR.Extensions'
24
- - name : project.AppInsights
25
- value : ' Kros.ApplicationInsights.Extensions'
26
28
- name : project.Swagger
27
29
value : ' Kros.Swagger.Extensions'
28
30
- name : ' project.Current'
@@ -31,18 +33,22 @@ variables:
31
33
value : 0
32
34
33
35
steps :
36
+ - powershell : echo '##vso[task.setvariable variable=project.Current]$(project.AppInsights)'
37
+ displayName : ' Set project: $(project.AppInsights)'
38
+ condition : startsWith(variables['Build.SourceBranch'], 'refs/tags/appinsights-v')
39
+
34
40
- powershell : echo '##vso[task.setvariable variable=project.Current]$(project.AspNetCore)'
35
41
displayName : ' Set project: $(project.AspNetCore)'
36
42
condition : startsWith(variables['Build.SourceBranch'], 'refs/tags/aspnetcore-v')
37
43
44
+ - powershell : echo '##vso[task.setvariable variable=project.Current]$(project.MassTransitAzure)'
45
+ displayName : ' Set project: $(project.MassTransitAzure)'
46
+ condition : startsWith(variables['Build.SourceBranch'], 'refs/tags/masstransitaz-v')
47
+
38
48
- powershell : echo '##vso[task.setvariable variable=project.Current]$(project.MediatR)'
39
49
displayName : ' Set project: $(project.MediatR)'
40
50
condition : startsWith(variables['Build.SourceBranch'], 'refs/tags/mediatr-v')
41
51
42
- - powershell : echo '##vso[task.setvariable variable=project.Current]$(project.AppInsights)'
43
- displayName : ' Set project: $(project.AppInsights)'
44
- condition : startsWith(variables['Build.SourceBranch'], 'refs/tags/appinsights-v')
45
-
46
52
- powershell : echo '##vso[task.setvariable variable=project.Current]$(project.Swagger)'
47
53
displayName : ' Set project: $(project.Swagger)'
48
54
condition : startsWith(variables['Build.SourceBranch'], 'refs/tags/swagger-v')
@@ -51,9 +57,10 @@ steps:
51
57
echo No project was specified.
52
58
echo Build must be triggered with correct tag and based on the tag name, the project is selected.
53
59
echo Available tag names and their projects:
60
+ echo - appinsights-v* - Kros.ApplicationInsights.Extensions
54
61
echo - aspnetcore-v* - Kros.AspNetCore
62
+ echo - masstransitaz-v* - Kros.MassTransit.AzureServiceBus
55
63
echo - mediatr-v* - Kros.MediatR.Extensions
56
- echo - appinsights-v* - Kros.ApplicationInsights.Extensions
57
64
echo - swagger-v* - Kros.Swagger.Extensions
58
65
exit 1
59
66
displayName: 'Check project name'
0 commit comments