props/Jenkinsfile

52 lines
1.9 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 {
2022-04-24 06:25:46 +00:00
dotnetTest project: "Props.Shop/Props.Shop.Tests.sln", unstableIfErrors: true, unstableIfWarnings: true
}
}
stage("Publish") {
steps {
dotnetPublish configuration: 'Release', 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 {
2022-04-24 06:25:46 +00:00
dotnetTest project: "Props.Tests", unstableIfErrors: true, unstableIfWarnings: true
}
}
stage("Publish") {
steps {
// TODO: Archive things.
dotnetPublish configuration: 'Release', noRestore: true, project: 'Props', runtime: 'win-x64', sdk: 'Default .NET SDK'
dotnetPublish configuration: 'Release', noRestore: true, project: 'Props', runtime: 'linux-x64', sdk: 'Default .NET SDK'
}
}
}
}
}
}