Changed pipeline to output to special folder.

This commit is contained in:
Harrison Deng 2022-04-26 03:40:29 -05:00
parent e83d19b699
commit 4d49ce33c2
2 changed files with 9 additions and 9 deletions

16
Jenkinsfile vendored
View File

@ -3,7 +3,7 @@ pipeline {
stages { stages {
stage("cleanup") { stage("cleanup") {
steps { steps {
cleanWs(patterns: [[pattern: '**/bin/Release', type: 'INCLUDE'], [pattern: 'props-linux-x64*', type: 'INCLUDE'], [pattern: 'props-win-x64*', type: 'INCLUDE']]) cleanWs(patterns: [[pattern: '**/bin/Release', type: 'INCLUDE'], [pattern: 'output/**', type: 'INCLUDE']])
} }
} }
stage("Props.Shop") { stage("Props.Shop") {
@ -22,8 +22,8 @@ pipeline {
} }
stage("Publish") { stage("Publish") {
steps { steps {
dotnetPublish configuration: 'Release', noRestore: true, project: 'Props.Shop/Props.Shop.sln', selfContained: false, unstableIfWarnings: true dotnetPublish configuration: 'Release', outputDirectory: 'output/shop-modules', noRestore: true, project: 'Props.Shop/Props.Shop.sln', selfContained: false, unstableIfWarnings: true
fingerprint 'Props.Shop/**/bin/Release/**/publish/Props.Shop.*' fingerprint 'output/shop-modules/**/Props.Shop.*'
sh "python3 scripts/load_shop_modules.py" sh "python3 scripts/load_shop_modules.py"
} }
} }
@ -39,11 +39,11 @@ pipeline {
} }
stage("Publish") { stage("Publish") {
steps { steps {
dotnetPublish configuration: 'Release', outputDirectory: 'props-linux-x64', project: 'Props', runtime: 'linux-x64', selfContained: true dotnetPublish configuration: 'Release', outputDirectory: 'output/props/props-linux-x64', project: 'Props', runtime: 'linux-x64', selfContained: true
dotnetPublish configuration: 'Release', outputDirectory: 'props-win-x64', project: 'Props', runtime: 'win-x64', selfContained: true dotnetPublish configuration: 'Release', outputDirectory: 'output/props/props-win-x64', project: 'Props', runtime: 'win-x64', selfContained: true
fingerprint 'Props/bin/Release/**/publish/Props*' fingerprint 'output/props/**/Props*'
tar file: "props-linux-x64.tar.gz", archive: true, compress: true, dir: "props-linux-x64" tar file: "output/props-linux-x64.tar.gz", archive: true, compress: true, dir: "props-linux-x64"
zip zipFile: "props-win-x64.zip", archive: true, dir: "props-win-x64" zip zipFile: "output/props-win-x64.zip", archive: true, dir: "props-win-x64"
} }
} }
} }

View File

@ -8,7 +8,7 @@ PROP_SHOP_MODULES_DIR = "./Props.Shop/"
PROPS_SHOP_MODULES_DST = "./Props/shops/." PROPS_SHOP_MODULES_DST = "./Props/shops/."
NET_VER = "net6.0" NET_VER = "net6.0"
SHOP_MODULE_GLOB = "**/bin/Release/{net_ver}/publish/*.{ext}" SHOP_MODULE_GLOB = "output/shop-modules/**/*.{ext}"
EXTS = ["deps.json", "dll"] EXTS = ["deps.json", "dll"]