Updating Jenkinsfile to work on common runner.
Some checks failed
ydeng/props/pipeline/head There was a failure building this commit
Some checks failed
ydeng/props/pipeline/head There was a failure building this commit
This commit is contained in:
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@@ -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)])
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user