From 4b9c1396c53d29f0d0724f21e46ed43fc5cbc8c5 Mon Sep 17 00:00:00 2001 From: Rui Marinho Date: Wed, 13 Nov 2019 23:44:47 +0000 Subject: [PATCH] [Build] Update version numbers to ship from yaml (#8437) * Update version numbers * Update Version.targets * Fix variables * Update azure-pipelines.yml * Update azure-pipelines.yml * Update azure-pipelines.yml * Update azure-pipelines.yml * Update azure-pipelines.yml --- Version.targets | 16 +++++++++++----- azure-pipelines.yml | 15 ++++++++++++++- 2 files changed, 25 insertions(+), 6 deletions(-) diff --git a/Version.targets b/Version.targets index 301489cbb..841f927c3 100644 --- a/Version.targets +++ b/Version.targets @@ -1,22 +1,24 @@  nightly + pre\d $(SYSTEM_PULLREQUEST_TARGETBRANCH) $(BUILD_SOURCEBRANCHNAME) - - $(NightlyTag) - -$(GitSemVerLabel) - - + + $([System.Text.RegularExpressions.Regex]::Match($(GitTag), $(RegexPre))) + $(PreOut) + $(NightlyTag) + -$(GitSemVerLabel) + @@ -34,7 +36,11 @@ +$(VersionMetadataLabel) $(GitBaseVersionMajor).$(GitBaseVersionMinor).$(GitBaseVersionPatch) $(GitSemVerMajor).$(GitSemVerMinor).$(GitSemVerPatch)$(GitSemVerDashLabel)$(VersionMetadataPlusLabel) + $(GitSemVerMajor).$(GitSemVerMinor).$(GitBaseVersionPatch).$(BUILDVERSION)$(GitSemVerDashLabel)$(VersionMetadataPlusLabel) + $(GitSemVerMajor).$(GitSemVerMinor).$(GitBaseVersionPatch).$(BUILDVERSION42)$(GitSemVerDashLabel)$(VersionMetadataPlusLabel) + $(GitSemVerMajor).$(GitSemVerMinor).$(GitBaseVersionPatch).$(BUILDVERSION43)$(GitSemVerDashLabel)$(VersionMetadataPlusLabel) + $(GitSemVerMajor).$(GitSemVerMinor).$(GitBaseVersionPatch).$(BUILDVERSION44)$(GitSemVerDashLabel)$(VersionMetadataPlusLabel) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b304802d2..673d0194c 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -10,7 +10,13 @@ variables: - name: SolutionFile value: Xamarin.Forms.sln - name: BuildVersion - value: $[counter('$(Build.SourceBranchName)_counter', 1)] + value: $[counter(variables['Build.SourceBranch'], 1)] +- name: BuildVersion42 + value: $[counter('4.2.0', 910311)] +- name: BuildVersion43 + value: $[counter('4.3.0', 991211)] +- name: BuildVersion44 + value: $[counter('4.4.0', 991210)] - name: NUGET_VERSION value: 5.0.2 - name: DOTNET_SKIP_FIRST_TIME_EXPERIENCE @@ -44,6 +50,13 @@ pr: - 4.* - 3.* +schedules: +- cron: "0 0 * * *" + displayName: Daily midnight build + branches: + include: + - master + jobs: - template: build/steps/build-windows.yml parameters: