Update appveyor.yml
This commit is contained in:
parent
6c802335ad
commit
fb05d3c3cb
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue