props/Jenkinsfile

57 lines
2.5 KiB
Plaintext
Raw Normal View History

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 {
dotnetTest noRestore: true, project: "Props.Shop/Props.Shop.Tests.sln", unstableIfErrors: true, unstableIfWarnings: true
}
}
stage("Publish") {
steps {
dotnetPublish configuration: 'Release', noRestore: true, project: 'Props.Shop/Props.Shop.sln', selfContained: false, unstableIfWarnings: true
archiveArtifacts artifacts: 'Props.Shop/**/bin/Release/**/publish/Props*', excludes: 'Props.Shop/*.Tests/**/*', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true
sh "python3 scripts/load_shop_modules.py"
}
}
}
}
stage("Props") {
stages {
stage("Restore") {
steps {
dotnetRestore project: "Props"
dotnetRestore project: "Props.Tests"
}
}
stage("Test") {
steps {
dotnetTest noRestore: true, project: "Props.Tests", unstableIfErrors: true, unstableIfWarnings: true
}
}
stage("Publish") {
steps {
dotnetPublish configuration: 'Release', noRestore: true, project: 'Props', sdk: 'Default .NET SDK'
2022-04-25 05:02:37 +00:00
archiveArtifacts artifacts: 'Props/bin/Release/**/publish/Props*', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true
}
}
}
}
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']])
}
}
}
}