Updating Jenkinsfile to work on common runner.
Some checks failed
ydeng/props/pipeline/head There was a failure building this commit

This commit is contained in:
2024-07-12 22:28:47 +00:00
parent eadd104808
commit 641389e79d
3 changed files with 6 additions and 26 deletions

8
Jenkinsfile vendored
View File

@@ -3,12 +3,12 @@ pipeline {
stages {
stage("Install") {
steps {
sh 'mamba env update --file environment.yml'
sh 'echo "mamba activate props" >> ~/.bashrc'
sh 'wget -O Miniforge3.sh "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"'
sh 'bash Miniforge3.sh -b -p "${HOME}/conda"'
sh 'echo "conda 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'
}
}
@@ -16,7 +16,7 @@ pipeline {
stages {
stage("Test") {
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.sln'
xunit([xUnitDotNet(excludesPattern: '', pattern: 'Props.Shop/*.Tests/TestResults/*.xml', stopProcessingIfError: true)])
}
}