Skip to content

Commit

Permalink
Set up CI with Azure Pipelines
Browse files Browse the repository at this point in the history
Add v3.0-beta CICD [skip ci]
  • Loading branch information
eneshoxha committed Oct 20, 2022
1 parent 2e583ea commit bcfb0db
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions pipelines/v3-beta-pipelines.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# Buildersoft Andy X Client v3 beta Pipeline

trigger:
- v3/main

name: $(BuildDefinitionName)_$(Year:yyyy).$(Month).$(DayOfMonth)$(Rev:.r)

pool:
vmImage: 'windows-latest'

variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
major: 3
minor: 0
patch: $[counter(variables['minor'], 0)] #this will reset when we bump minor
NugetVersion: $(major).$(minor).0-preview$(patch)
# NugetVersion: $(major).$(minor).$(patch)
steps:
- task: NuGetToolInstaller@1

- task: NuGetCommand@2
inputs:
restoreSolution: '$(solution)'
nugetConfigPath: ./nuget.config

- task: VSBuild@1
inputs:
solution: '$(solution)'
msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactStagingDirectory)"'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'

- task: VSTest@2
inputs:
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'

- task: DotNetCoreCLI@2
inputs:
command: 'pack'
packagesToPack: '**/*.csproj'
versioningScheme: 'byEnvVar'
versionEnvVar: 'NugetVersion'

# Push to NuGet
- task: NuGetCommand@2
inputs:
command: 'push'
packagesToPush: '$(Build.ArtifactStagingDirectory)/**/*.nupkg;!$(Build.ArtifactStagingDirectory)/**/*.symbols.nupkg'
nuGetFeedType: 'external'
publishFeedCredentials: 'Cortex-Public-Nuget'

0 comments on commit bcfb0db

Please sign in to comment.