Updated Jenkinsfile.
All "dotnet restore" commands are now part of the "install" stage.
This commit is contained in:
parent
4841d539fc
commit
0c7b85351c
14
Jenkinsfile
vendored
14
Jenkinsfile
vendored
@ -7,16 +7,13 @@ pipeline {
|
|||||||
sh 'echo "mamba activate props" >> ~/.bashrc'
|
sh 'echo "mamba activate props" >> ~/.bashrc'
|
||||||
sh 'node --version && npm --version'
|
sh 'node --version && npm --version'
|
||||||
sh 'cd Props && npm install'
|
sh 'cd Props && npm install'
|
||||||
|
sh 'dotnet restore Props.Shop/Props.Shop.sln'
|
||||||
|
sh 'dotnet restore Props.Shop/Props.Shop.Tests.sln'
|
||||||
|
sh 'dotnet restore Props.Tests'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stage("Props.Shop") {
|
stage("Props.Shop") {
|
||||||
stages {
|
stages {
|
||||||
stage("Restore") {
|
|
||||||
steps {
|
|
||||||
sh 'dotnet restore Props.Shop/Props.Shop.sln'
|
|
||||||
sh 'dotnet restore Props.Shop/Props.Shop.Tests.sln'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage("Test") {
|
stage("Test") {
|
||||||
steps {
|
steps {
|
||||||
sh 'dotnet test --logger xunit --no-restore Props.Shop/Props.Shop.Tests.sln'
|
sh 'dotnet test --logger xunit --no-restore Props.Shop/Props.Shop.Tests.sln'
|
||||||
@ -34,11 +31,6 @@ pipeline {
|
|||||||
}
|
}
|
||||||
stage("Props") {
|
stage("Props") {
|
||||||
stages {
|
stages {
|
||||||
stage("Restore") {
|
|
||||||
steps {
|
|
||||||
sh 'dotnet restore Props.Tests'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
stage("Test") {
|
stage("Test") {
|
||||||
steps {
|
steps {
|
||||||
sh 'dotnet test --logger xunit --no-restore Props.Tests'
|
sh 'dotnet test --logger xunit --no-restore Props.Tests'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user