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 'node --version && npm --version'
|
||||
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") {
|
||||
stages {
|
||||
stage("Restore") {
|
||||
steps {
|
||||
sh 'dotnet restore Props.Shop/Props.Shop.sln'
|
||||
sh 'dotnet restore Props.Shop/Props.Shop.Tests.sln'
|
||||
}
|
||||
}
|
||||
stage("Test") {
|
||||
steps {
|
||||
sh 'dotnet test --logger xunit --no-restore Props.Shop/Props.Shop.Tests.sln'
|
||||
@ -34,11 +31,6 @@ pipeline {
|
||||
}
|
||||
stage("Props") {
|
||||
stages {
|
||||
stage("Restore") {
|
||||
steps {
|
||||
sh 'dotnet restore Props.Tests'
|
||||
}
|
||||
}
|
||||
stage("Test") {
|
||||
steps {
|
||||
sh 'dotnet test --logger xunit --no-restore Props.Tests'
|
||||
|
Loading…
Reference in New Issue
Block a user