You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2020/04/01 15:26:33 UTC
[lucenenet] 03/03: azure-pipelines.yml,
build.ps1: Updated command to update version numbers from the (no
longer supported) vso[task.setvariable variable=Build.BuildNumber] to
vso[build.updatebuildnumber] (closes #239)
This is an automated email from the ASF dual-hosted git repository.
nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git
commit 5ca25da899940b00cf7cf7773fe093ababaafc54
Author: bongohrtech <mi...@bongohr.org>
AuthorDate: Thu Mar 26 13:43:31 2020 +0700
azure-pipelines.yml, build.ps1: Updated command to update version numbers from the (no longer supported) vso[task.setvariable variable=Build.BuildNumber] to vso[build.updatebuildnumber] (closes #239)
---
azure-pipelines.yml | 4 ++--
build/build.ps1 | 1 -
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 0ff3508..d3d2b30 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -333,7 +333,7 @@ stages:
- powershell: |
$version = Get-Content '$(Build.ArtifactStagingDirectory)/$(VersionArtifactName)/$(PackageVersionFileName)' -Raw
Write-Host "##vso[task.setvariable variable=PackageVersion;]$version"
- Write-Host "##vso[task.setvariable variable=Build.BuildNumber;]$version"
+ Write-Host "##vso[build.updatebuildnumber]$version"
displayName: 'Read PackageVersion from File to Build.BuildNumber'
- template: 'build/azure-templates/show-all-environment-variables.yml'
@@ -378,7 +378,7 @@ stages:
$vcsLabel = 'Lucene.Net_' + $version.Replace('.', '_').Replace('-', '_')
Write-Host "##vso[task.setvariable variable=VCSLabel;]$vcsLabel"
Write-Host "##vso[task.setvariable variable=PackageVersion;]$version"
- Write-Host "##vso[task.setvariable variable=Build.BuildNumber;]$version"
+ Write-Host "##vso[build.updatebuildnumber]$version"
displayName: 'Build VCS Label and Rehydrate Version Variables'
- powershell: |
diff --git a/build/build.ps1 b/build/build.ps1
index b03631c..176fa2e 100644
--- a/build/build.ps1
+++ b/build/build.ps1
@@ -94,7 +94,6 @@ task Init -depends InstallSDK, UpdateLocalSDKVersion -description "This task mak
#Update TeamCity, MyGet, or Azure Pipelines with packageVersion
Write-Output "##teamcity[buildNumber '$packageVersion']"
Write-Output "##myget[buildNumber '$packageVersion']"
- Write-Host "##vso[task.setvariable variable=Build.BuildNumber;]$packageVersion"
Write-Host "##vso[build.updatebuildnumber]$packageVersion"
& dotnet.exe --version