1
1
trigger :
2
- - main
3
- - main-v10
2
+ branches :
3
+ include :
4
+ - main-v16
5
+ - v16/dev
6
+ paths :
7
+ include :
8
+ - src/Umbraco.Forms.Integrations.Crm.Hubspot/**
9
+ - azure-pipeline - Crm.Hubspot.yml
4
10
5
11
pool :
6
12
vmImage : ' windows-latest'
7
13
8
14
variables :
9
15
projectName : ' Umbraco.Forms.Integrations.Crm.Hubspot'
10
- solution : ' **/*.sln'
11
16
project : ' src/$(projectName)/$(projectName).csproj'
12
- testProject : ' src/$(projectName).Tests/$(projectName).Tests.csproj'
13
17
buildPlatform : ' Any CPU'
14
18
buildConfiguration : ' Release'
15
19
16
20
steps :
17
21
- task : NuGetToolInstaller@1
18
22
displayName : ' Install NuGet'
19
23
20
- - task : NuGetCommand @2
24
+ - task : DotNetCoreCLI @2
21
25
displayName : ' NuGet Restore'
22
26
inputs :
23
- restoreSolution : ' $(solution)'
27
+ command : ' restore'
28
+ feedsToUse : ' select'
29
+ projects : ' $(project)'
30
+ includeNuGetOrg : true
24
31
25
- - task : VSBuild@1
26
- displayName : ' Build Project '
32
+ - task : UseDotNet@2
33
+ displayName : ' Use SDK version 9.0.203 '
27
34
inputs :
28
- solution : ' $(project)'
29
- msbuildArgs : ' /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactStagingDirectory)"'
30
- platform : ' $(buildPlatform)'
31
- configuration : ' $(buildConfiguration)'
35
+ packageType : ' sdk'
36
+ version : ' 9.0.203'
32
37
33
38
- task : VSBuild@1
34
- displayName : ' Build Tests '
39
+ displayName : ' Build Project '
35
40
inputs :
36
- solution : ' $(testProject )'
41
+ solution : ' $(project )'
37
42
msbuildArgs : ' /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactStagingDirectory)"'
38
43
platform : ' $(buildPlatform)'
39
44
configuration : ' $(buildConfiguration)'
40
45
41
- - task : DotNetCoreCLI@2
42
- displayName : dotnet test
43
- inputs :
44
- command : test
45
- projects : ' **/*.Tests.csproj'
46
-
47
46
- task : DotNetCoreCLI@2
48
47
displayName : ' Create NuGet Package'
49
48
inputs :
@@ -52,19 +51,9 @@ steps:
52
51
packagesToPack : ' $(project)'
53
52
versioningScheme : ' off'
54
53
55
- - task : CmdLine@2
56
- displayName : ' Create Umbraco Package'
57
- inputs :
58
- script : |
59
- dotnet tool install --global Umbraco.Tools.Packages
60
- cd src/$(projectName)/
61
- umbpack pack .\package.xml -o $(Build.ArtifactStagingDirectory)
62
- cd ../../
63
- condition : eq(variables['Build.SourceBranch'], 'refs/heads/main')
64
-
65
54
- task : PublishBuildArtifacts@1
66
55
displayName : ' Publish Build Artifacts'
67
56
inputs :
68
57
PathtoPublish : ' $(Build.ArtifactStagingDirectory)'
69
58
ArtifactName : ' drop'
70
- publishLocation : ' Container'
59
+ publishLocation : ' Container'
0 commit comments