diff --git a/appveyor.yml b/appveyor.yml index 54b78dc3f..7090e0164 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -2,6 +2,7 @@ image: Previous Visual Studio 2019 environment: elsa_version: 2.3.0 + elsa_build_version: 0.0.0 nodejs_version: "14.6.0" # AppVeyor installs Java on its build agents by default, but it # picks an old version that's not compatible with SonarQube. @@ -17,14 +18,14 @@ init: - ps: | if ($env:APPVEYOR_REPO_TAG -eq "true") { - Set-AppveyorBuildVariable -Name "APPVEYOR_BUILD_VERSION" -Value $env:APPVEYOR_REPO_TAG_NAME + Set-AppveyorBuildVariable -Name "elsa_build_version" -Value $env:APPVEYOR_REPO_TAG_NAME } else { - Set-AppveyorBuildVariable -Name "APPVEYOR_BUILD_VERSION" -Value "$($env:elsa_version)-preview.$($env:APPVEYOR_BUILD_NUMBER)" + Set-AppveyorBuildVariable -Name "elsa_build_version" -Value "$($env:elsa_version)-preview.$($env:APPVEYOR_BUILD_NUMBER)" } -# version: 2.3.0-preview.{build} +version: {elsa_build_version} pull_requests: do_not_increment_build_number: true