Skip to content

Commit

Permalink
catch ps exception on updateversion
Browse files Browse the repository at this point in the history
  • Loading branch information
speters committed Nov 5, 2018
1 parent 9ae6c90 commit 18a9744
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,20 @@ environment:
init:
# Set "build version number" to "short-commit-hash" or when tagged to "tag name" (Travis style)
- ps: >-
if ($env:APPVEYOR_REPO_TAG -eq "true")
Try
{
Update-AppveyorBuild -Version "$env:APPVEYOR_REPO_TAG_NAME"
if ($env:APPVEYOR_REPO_TAG -eq "true")
{
Update-AppveyorBuild -Version "$env:APPVEYOR_REPO_TAG_NAME"
}
else
{
Update-AppveyorBuild -Version "$($env:APPVEYOR_REPO_COMMIT.substring(0,7))-dirty"
}
}
else
Catch
{
Update-AppveyorBuild -Version "$($env:APPVEYOR_REPO_COMMIT.substring(0,7))-dirty"
Update-AppveyorBuild -Version "$($env:APPVEYOR_REPO_COMMIT.substring(0,7))-dirty"
}
install:
Expand Down

0 comments on commit 18a9744

Please sign in to comment.