From aec087af476c2c238c6f5e3723069ed3ec0527ad Mon Sep 17 00:00:00 2001 From: "Jamie.Rees" Date: Thu, 25 May 2017 13:10:21 +0100 Subject: [PATCH] Build task changes --- BuildTask.ps1 | 8 +++----- appveyor.yml | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/BuildTask.ps1 b/BuildTask.ps1 index aa968b3fa..787515b50 100644 --- a/BuildTask.ps1 +++ b/BuildTask.ps1 @@ -1,11 +1,9 @@  -param([String]$env='local', -[String]$ver='3.0.0', -[String]$basePath='') +param([String]$env='local') "Environment: " + $env | Write-Output; -"Build Version: " + $ver | Write-Output; -"Base Path: " + $basePath | Write-Output; +"Build Version: " + $env:APPVEYOR_BUILD_VERSION | Write-Output; +"Base Path: " + $env:APPVEYOR_BUILD_FOLDER | Write-Output; $appSettingsPath = $basePath + '\src\Ombi\appsettings.json' $appSettings = Get-Content $appSettingsPath -raw diff --git a/appveyor.yml b/appveyor.yml index 3595c355b..93cac22c2 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -3,7 +3,7 @@ configuration: Release os: Visual Studio 2017 before_build: - ps: Update-NodeJsInstallation 7.8.0 -- ps: .\%APPVEYOR_BUILD_FOLDER%\BuildTask.ps1 -env "live" -ver "%APPVEYOR_BUILD_VERSION%" -basePath "%APPVEYOR_BUILD_FOLDER%" +- ps: .\BuildTask.ps1 -env "live" - cmd: cd src/ombi - node --version - appveyor-retry dotnet restore