props/Jenkinsfile
2022-04-24 22:48:46 -05:00

51 lines
1.9 KiB
Groovy

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