Improoved logging

This commit is contained in:
lukeIam authored and derivator committed 2015-12-06 13:48:17 +01:00
1 parent 0021b76083
commit cb51f15fed
3 files changed
+7 -7

No files matched your search

+2 -2
View File
@@ -29,7 +29,7 @@ catch [System.Net.WebException]
# Error getting tags # Error getting tags
$statusCode = [int]$_.Exception.Response.StatusCode $statusCode = [int]$_.Exception.Response.StatusCode
$html = $_.Exception.Response.StatusDescription $html = $_.Exception.Response.StatusDescription
Write-Host "Error getting tags ($html)" Write-Host "Error getting info for tags ($html)"
Return ; Return ;
} }
@@ -42,7 +42,7 @@ catch [System.Net.WebException]
# Error comparing tags # Error comparing tags
$statusCode = [int]$_.Exception.Response.StatusCode $statusCode = [int]$_.Exception.Response.StatusCode
$html = $_.Exception.Response.StatusDescription $html = $_.Exception.Response.StatusDescription
Write-Host "Error comparing tags ($html)" Write-Host "Error comparing tags with current commit ($html)"
Return ; Return ;
} }
+2 -2
View File
@@ -4,7 +4,7 @@ if($Env:APPVEYOR_REPO_TAG -ne "true") {
$Env:NIGHTLY_BUILD = true $Env:NIGHTLY_BUILD = true
} }
else{ else{
Write-Host "No tag or special branch found" Write-Host "No special branch found"
Return Return
} }
git config --global user.email "build@vocaluxe.de"; git config --global user.email "build@vocaluxe.de";
@@ -12,5 +12,5 @@ if($Env:APPVEYOR_REPO_TAG -ne "true") {
git tag "$targetTag" -f; git tag "$targetTag" -f;
git push -q -f "https://$($Env:GitHubKey):x-oauth-basic@github.com/lukeIam/Vocaluxe.git" "$targetTag"; git push -q -f "https://$($Env:GitHubKey):x-oauth-basic@github.com/lukeIam/Vocaluxe.git" "$targetTag";
Write-Host "Branch $Env:APPVEYOR_REPO_BRANCH -> Tag=$targetTag" Write-Host "Tag $targetTag points now to the head of branch $Env:APPVEYOR_REPO_BRANCH"
} }
+3 -3
View File
@@ -22,7 +22,7 @@ catch [System.Net.WebException]
# No Release found for this tag # No Release found for this tag
$statusCode = [int]$_.Exception.Response.StatusCode $statusCode = [int]$_.Exception.Response.StatusCode
$html = $_.Exception.Response.StatusDescription $html = $_.Exception.Response.StatusDescription
Write-Host "No Release found for this tag ($html)" Write-Host "No Release found for this tag ($html): $($Env:APPVEYOR_REPO_TAG_NAME)"
Return; Return;
} }
@@ -44,14 +44,14 @@ $deleteAssetParams = @{
} }
try{ try{
$result = Invoke-RestMethod @deleteAssetParams $result = Invoke-RestMethod @deleteAssetParams
Write-Host "Successfully deleted asset" Write-Host "Successfully deleted asset: Vocaluxe_$($Env:APPVEYOR_REPO_TAG_NAME)_Windows_$($Env:PLATFORM).zip"
} }
catch [System.Net.WebException] catch [System.Net.WebException]
{ {
# Could not delete asset # Could not delete asset
$statusCode = [int]$_.Exception.Response.StatusCode $statusCode = [int]$_.Exception.Response.StatusCode
$html = $_.Exception.Response.StatusDescription $html = $_.Exception.Response.StatusDescription
Write-Host "Could not delete asset ($html)" Write-Host "Could not delete asset ($html): Vocaluxe_$($Env:APPVEYOR_REPO_TAG_NAME)_Windows_$($Env:PLATFORM).zip"
Return; Return;
} }