11trigger :
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
410
511pool :
612 vmImage : ' windows-latest'
713
814variables :
915 projectName : ' Umbraco.Forms.Integrations.Crm.Hubspot'
10- solution : ' **/*.sln'
1116 project : ' src/$(projectName)/$(projectName).csproj'
12- testProject : ' src/$(projectName).Tests/$(projectName).Tests.csproj'
1317 buildPlatform : ' Any CPU'
1418 buildConfiguration : ' Release'
1519
1620steps :
1721- task : NuGetToolInstaller@1
1822 displayName : ' Install NuGet'
1923
20- - task : NuGetCommand @2
24+ - task : DotNetCoreCLI @2
2125 displayName : ' NuGet Restore'
2226 inputs :
23- restoreSolution : ' $(solution)'
27+ command : ' restore'
28+ feedsToUse : ' select'
29+ projects : ' $(project)'
30+ includeNuGetOrg : true
2431
25- - task : VSBuild@1
26- displayName : ' Build Project '
32+ - task : UseDotNet@2
33+ displayName : ' Use SDK version 9.0.203 '
2734 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'
3237
3338- task : VSBuild@1
34- displayName : ' Build Tests '
39+ displayName : ' Build Project '
3540 inputs :
36- solution : ' $(testProject )'
41+ solution : ' $(project )'
3742 msbuildArgs : ' /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactStagingDirectory)"'
3843 platform : ' $(buildPlatform)'
3944 configuration : ' $(buildConfiguration)'
4045
41- - task : DotNetCoreCLI@2
42- displayName : dotnet test
43- inputs :
44- command : test
45- projects : ' **/*.Tests.csproj'
46-
4746- task : DotNetCoreCLI@2
4847 displayName : ' Create NuGet Package'
4948 inputs :
@@ -52,19 +51,9 @@ steps:
5251 packagesToPack : ' $(project)'
5352 versioningScheme : ' off'
5453
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-
6554- task : PublishBuildArtifacts@1
6655 displayName : ' Publish Build Artifacts'
6756 inputs :
6857 PathtoPublish : ' $(Build.ArtifactStagingDirectory)'
6958 ArtifactName : ' drop'
70- publishLocation : ' Container'
59+ publishLocation : ' Container'
0 commit comments