2022-04-24 05:01:55 +00:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
stages {
|
|
|
|
stage("Props.Shop") {
|
|
|
|
stages {
|
|
|
|
stage("Restore") {
|
|
|
|
steps {
|
2022-04-25 07:41:31 +00:00
|
|
|
dotnetRestore project: "Props.Shop/Props.Shop.sln"
|
|
|
|
dotnetRestore project: "Props.Shop/Props.Shop.Tests.sln"
|
2022-04-24 05:01:55 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("Test") {
|
|
|
|
steps {
|
2022-04-25 07:40:03 +00:00
|
|
|
dotnetTest logger: 'xunit', noRestore: true, project: 'Props.Shop/Props.Shop.Tests.sln', unstableIfErrors: true, unstableIfWarnings: true
|
2022-04-25 07:44:05 +00:00
|
|
|
xunit([xUnitDotNet(excludesPattern: '', pattern: 'Props.Shop/*.Tests/TestResults/*.xml', stopProcessingIfError: true)])
|
2022-04-24 05:01:55 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("Publish") {
|
|
|
|
steps {
|
2022-04-25 04:58:33 +00:00
|
|
|
dotnetPublish configuration: 'Release', noRestore: true, project: 'Props.Shop/Props.Shop.sln', selfContained: false, unstableIfWarnings: true
|
2022-04-25 08:06:24 +00:00
|
|
|
fingerprint 'Props.Shop/**/bin/Release/**/publish/Props.Shop.*'
|
2022-04-24 05:01:55 +00:00
|
|
|
sh "python3 scripts/load_shop_modules.py"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("Props") {
|
|
|
|
stages {
|
|
|
|
stage("Restore") {
|
|
|
|
steps {
|
2022-04-25 05:09:40 +00:00
|
|
|
dotnetRestore project: "Props"
|
2022-04-24 05:01:55 +00:00
|
|
|
dotnetRestore project: "Props.Tests"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("Test") {
|
|
|
|
steps {
|
2022-04-25 07:40:03 +00:00
|
|
|
dotnetTest logger: 'xunit', noRestore: true, project: 'Props.Tests', unstableIfErrors: true, unstableIfWarnings: true
|
2022-04-25 07:44:05 +00:00
|
|
|
xunit([xUnitDotNet(excludesPattern: '', pattern: 'Props.Tests/TestResults/*.xml', stopProcessingIfError: true)])
|
2022-04-24 05:01:55 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("Publish") {
|
|
|
|
steps {
|
2022-04-25 08:45:54 +00:00
|
|
|
dotnetPublish configuration: 'Release', outputDirectory: 'props-linux-x64', project: 'Props', runtime: 'linux-x64', selfContained: true
|
|
|
|
dotnetPublish configuration: 'Release', outputDirectory: 'props-win-x64', project: 'Props', runtime: 'win-x64', selfContained: true
|
2022-04-25 08:06:24 +00:00
|
|
|
fingerprint 'Props/bin/Release/**/publish/Props*'
|
2022-04-25 08:51:46 +00:00
|
|
|
tar file: "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"
|
2022-04-24 05:01:55 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-04-25 05:48:46 +00:00
|
|
|
stage("cleanup") {
|
|
|
|
steps {
|
2022-04-25 08:51:46 +00:00
|
|
|
cleanWs(patterns: [[pattern: '**/bin/Release', type: 'INCLUDE'], [pattern: 'props-linux-x64*', type: 'INCLUDE'], [pattern: 'props-win-x64*', type: 'INCLUDE']])
|
2022-04-25 05:48:46 +00:00
|
|
|
}
|
|
|
|
}
|
2022-04-24 05:01:55 +00:00
|
|
|
}
|
|
|
|
}
|