Attempt at making build configurations consistent.
This commit is contained in:
parent
19f0eeb9bf
commit
5f2f648eaa
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
@ -5,20 +5,19 @@ pipeline {
|
|||||||
stages {
|
stages {
|
||||||
stage("Restore") {
|
stage("Restore") {
|
||||||
steps {
|
steps {
|
||||||
dotnetRestore project: "Props.Shop/Props.Shop.sln"
|
dotnetRestore configuration: 'Release', project: "Props.Shop/Props.Shop.sln"
|
||||||
dotnetRestore project: "Props.Shop/Props.Shop.Tests.sln"
|
dotnetRestore project: "Props.Shop/Props.Shop.Tests.sln"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage("Test") {
|
stage("Test") {
|
||||||
steps {
|
steps {
|
||||||
dotnetTest project: "Props.Shop/Props.Shop.Tests.sln", unstableIfErrors: true, unstableIfWarnings: true
|
dotnetTest noRestore: true, project: "Props.Shop/Props.Shop.Tests.sln", unstableIfErrors: true, unstableIfWarnings: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage("Publish") {
|
stage("Publish") {
|
||||||
steps {
|
steps {
|
||||||
dotnetPublish configuration: 'Release', project: 'Props.Shop/Props.Shop.sln', selfContained: false, unstableIfWarnings: true
|
dotnetPublish configuration: 'Release', noRestore: true, project: 'Props.Shop/Props.Shop.sln', selfContained: false, unstableIfWarnings: true
|
||||||
archiveArtifacts artifacts: 'Props.Shop/**/bin/Release/**/publish/Props.Shop.*', excludes: 'Props.Shop/*.Tests/**/*,Props.Shop/**/bin/Release/**/publish/Props.Shop.Framework*', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true
|
archiveArtifacts artifacts: 'Props.Shop/**/bin/Release/**/publish/Props.Shop.*', excludes: 'Props.Shop/*.Tests/**/*', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true
|
||||||
archiveArtifacts artifacts: 'Props.Shop/Framework/bin/Release/**/publish/Props.Shop.*', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true
|
|
||||||
sh "python3 scripts/load_shop_modules.py"
|
sh "python3 scripts/load_shop_modules.py"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -28,19 +27,19 @@ pipeline {
|
|||||||
stages {
|
stages {
|
||||||
stage("Restore") {
|
stage("Restore") {
|
||||||
steps {
|
steps {
|
||||||
dotnetRestore project: "Props"
|
dotnetRestore configuration: 'Release', project: "Props"
|
||||||
dotnetRestore project: "Props.Tests"
|
dotnetRestore project: "Props.Tests"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage("Test") {
|
stage("Test") {
|
||||||
steps {
|
steps {
|
||||||
dotnetTest project: "Props.Tests", unstableIfErrors: true, unstableIfWarnings: true
|
dotnetTest noRestore: true, project: "Props.Tests", unstableIfErrors: true, unstableIfWarnings: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage("Publish") {
|
stage("Publish") {
|
||||||
steps {
|
steps {
|
||||||
dotnetPublish configuration: 'Release', noRestore: true, project: 'Props', sdk: 'Default .NET SDK'
|
dotnetPublish configuration: 'Release', noRestore: true, project: 'Props', sdk: 'Default .NET SDK'
|
||||||
archiveArtifacts artifacts: 'Props/bin/Release/**/publish/Props*', fingerprint: true, followSymlinks: false, onlyIfSuccessful: true
|
archiveArtifacts artifacts: 'Props/bin/Release/**/publish/Props*', excludes: fingerprint: true, followSymlinks: false, onlyIfSuccessful: true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user