-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add v3.0-beta CICD [skip ci]
- Loading branch information
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |