2022-04-24 05:01:55 +00:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
stages {
|
|
|
|
stage("Props.Shop") {
|
|
|
|
stages {
|
|
|
|
stage("Restore") {
|
|
|
|
steps {
|
2022-04-25 05:05:19 +00:00
|
|
|
dotnetRestore project: "Props.Shop/Props.Shop.sln"
|
2022-04-24 05:01:55 +00:00
|
|
|
dotnetRestore project: "Props.Shop/Props.Shop.Tests.sln"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("Test") {
|
|
|
|
steps {
|
2022-04-25 04:58:33 +00:00
|
|
|
dotnetTest noRestore: true, project: "Props.Shop/Props.Shop.Tests.sln", unstableIfErrors: true, unstableIfWarnings: 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 06:40:10 +00:00
|
|
|
archiveArtifacts artifacts: 'Props.Shop/**/bin/Release/**/publish/Props.Shop.*', excludes: 'Props.Shop/*.Tests/**/*, **/Props.Shop.Framework.*', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true
|
2022-04-25 06:21:56 +00:00
|
|
|
archiveArtifacts artifacts: 'Props.Shop/Framework/bin/Release/**/publish/Props.Shop.Framework.*', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true
|
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 04:58:33 +00:00
|
|
|
dotnetTest noRestore: true, project: "Props.Tests", unstableIfErrors: true, unstableIfWarnings: true
|
2022-04-24 05:01:55 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("Publish") {
|
|
|
|
steps {
|
2022-04-25 05:48:46 +00:00
|
|
|
dotnetPublish configuration: 'Release', noRestore: true, project: 'Props', sdk: 'Default .NET SDK'
|
2022-04-25 06:51:39 +00:00
|
|
|
dotnetPublish configuration: 'Release', noRestore: true, project: 'Props', runtime: 'win-x64', sdk: 'Default .NET SDK', selfContained: false
|
2022-04-25 06:40:10 +00:00
|
|
|
archiveArtifacts artifacts: 'Props/bin/Release/**/publish/Props*', excludes: '**/Props.Shop.Framework.*', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true
|
2022-04-24 05:01:55 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-04-25 05:48:46 +00:00
|
|
|
stage("cleanup") {
|
|
|
|
steps {
|
|
|
|
dotnetClean project: 'Props/', sdk: 'Default .NET SDK'
|
|
|
|
dotnetClean project: 'Props.Tests/', sdk: 'Default .NET SDK'
|
|
|
|
dotnetClean project: 'Props.Shop/Props.Shop.sln', sdk: 'Default .NET SDK'
|
|
|
|
dotnetClean project: 'Props.Shop/Props.Shop.Tests.sln', sdk: 'Default .NET SDK'
|
2022-04-25 06:00:02 +00:00
|
|
|
cleanWs(patterns: [[pattern: '**/bin/Release', type: 'INCLUDE']])
|
2022-04-25 05:48:46 +00:00
|
|
|
}
|
|
|
|
}
|
2022-04-24 05:01:55 +00:00
|
|
|
}
|
|
|
|
}
|