Update Jenkinsfile

This commit is contained in:
Bishbash777
2022-01-16 22:51:02 +00:00
committed by GitHub
parent e49910e121
commit 73ee686a84

7
Jenkinsfile vendored
View File

@@ -18,7 +18,7 @@ def packageAndArchive(buildMode, packageName) {
node('windows') {
stage('Checkout') {
checkout scm
bat 'git pull --tags'
bat 'git pull https://github.com/TorchAPI/Torch/ master --tags'
}
stage('Acquire SE') {
@@ -29,7 +29,8 @@ node('windows') {
}
stage('Acquire NuGet Packages') {
bat 'nuget restore Torch.sln'
bat 'cd C:\\Program Files\\Jenkins'
bat '"C:\\Program Files\\Jenkins\\nuget.exe" restore Torch.sln'
}
stage('Build') {
@@ -37,7 +38,7 @@ node('windows') {
if (env.BRANCH_NAME == "master" || env.BRANCH_NAME == "Patron" || env.BRANCH_NAME == "publictest") {
buildMode = "Release"
} else {
buildMode = "Debug"
buildMode = "Release"
}
bat "IF EXIST \"bin\" rmdir /Q /S \"bin\""
bat "IF EXIST \"bin-test\" rmdir /Q /S \"bin-test\""