From eb9afd5e3666d43b40f45b16199e2b890f81af69 Mon Sep 17 00:00:00 2001 From: Bishbash777 <50243964+Bishbash777@users.noreply.github.com> Date: Sun, 16 Jan 2022 23:29:09 +0000 Subject: [PATCH] Update Jenkinsfile --- Jenkinsfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3bc8a6a..52bc7cc 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,7 +18,7 @@ def packageAndArchive(buildMode, packageName) { node('windows') { stage('Checkout') { checkout scm - bat 'git pull https://github.com/TorchAPI/Torch/ master --tags' + bat 'git pull --tags' } stage('Acquire SE') { @@ -29,8 +29,7 @@ node('windows') { } stage('Acquire NuGet Packages') { - bat 'cd C:\\Program Files\\Jenkins' - bat '"C:\\Program Files\\Jenkins\\nuget.exe" restore Torch.sln' + bat 'nuget restore Torch.sln' } stage('Build') { @@ -38,7 +37,7 @@ node('windows') { if (env.BRANCH_NAME == "master" || env.BRANCH_NAME == "Patron" || env.BRANCH_NAME == "publictest") { buildMode = "Release" } else { - buildMode = "Release" + buildMode = "Debug" } bat "IF EXIST \"bin\" rmdir /Q /S \"bin\"" bat "IF EXIST \"bin-test\" rmdir /Q /S \"bin-test\"" @@ -58,7 +57,6 @@ node('windows') { stage('Test') { bat 'IF NOT EXIST reports MKDIR reports' bat "\"packages/xunit.runner.console.2.2.0/tools/xunit.console.exe\" \"bin-test/x64/${buildMode}/Torch.Tests.dll\" \"bin-test/x64/${buildMode}/Torch.Server.Tests.dll\" \"bin-test/x64/${buildMode}/Torch.Client.Tests.dll\" -parallel none -xml \"reports/Torch.Tests.xml\"" - step([ $class: 'XUnitBuilder', thresholdMode: 1,