Updated Jenkinsfile.

All "dotnet restore" commands are now part of the "install" stage.
This commit is contained in:
Harrison Deng 2022-12-01 17:35:20 +00:00
parent 4841d539fc
commit 0c7b85351c

14
Jenkinsfile vendored
View File

@ -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'