2022-04-24 00:01:55 -05:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
stages {
|
|
|
|
stage("Props.Shop") {
|
|
|
|
stages {
|
|
|
|
stage("Restore") {
|
|
|
|
steps {
|
|
|
|
dotnetRestore project: "Props.Shop/Props.Shop.sln"
|
|
|
|
dotnetRestore project: "Props.Shop/Props.Shop.Tests.sln"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("Test") {
|
|
|
|
steps {
|
2022-04-24 01:25:46 -05:00
|
|
|
dotnetTest project: "Props.Shop/Props.Shop.Tests.sln", unstableIfErrors: true, unstableIfWarnings: true
|
2022-04-24 00:01:55 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("Publish") {
|
|
|
|
steps {
|
2022-04-24 22:48:46 -05:00
|
|
|
dotnetPublish configuration: 'Debug', project: 'Props.Shop/Props.Shop.sln', selfContained: false, unstableIfWarnings: true
|
2022-04-24 23:18:51 -05:00
|
|
|
archiveArtifacts artifacts: 'Props.Shop/**/bin/**/publish/Props.Shop.*', excludes: 'Props.Shop/*.Tests/**/*', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true
|
2022-04-24 00:01:55 -05:00
|
|
|
sh "python3 scripts/load_shop_modules.py"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("Props") {
|
|
|
|
stages {
|
|
|
|
stage("Restore") {
|
|
|
|
steps {
|
|
|
|
dotnetRestore project: "Props"
|
|
|
|
dotnetRestore project: "Props.Tests"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("Test") {
|
|
|
|
steps {
|
2022-04-24 01:25:46 -05:00
|
|
|
dotnetTest project: "Props.Tests", unstableIfErrors: true, unstableIfWarnings: true
|
2022-04-24 00:01:55 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
stage("Publish") {
|
|
|
|
steps {
|
2022-04-24 22:48:46 -05:00
|
|
|
dotnetPublish configuration: 'Release', noRestore: true, project: 'Props', sdk: 'Default .NET SDK'
|
2022-04-24 23:18:51 -05:00
|
|
|
archiveArtifacts artifacts: 'Props/bin/**/publish/Props*', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true
|
2022-04-24 00:01:55 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|