Updating to .Net 8.0.
Some checks failed
ydeng/gameservicewarden/pipeline/head There was a failure building this commit

This commit is contained in:
2024-07-20 15:03:57 +00:00
parent 3b69b8666c
commit 025999ab59
19 changed files with 110 additions and 77 deletions

17
Jenkinsfile vendored
View File

@@ -1,18 +1,21 @@
pipeline {
agent any
agent {
kubernetes {
cloud 'Reslate Systems'
defaultContainer 'conda'
}
}
stages {
stage ("Install") {
steps {
sh "mamba env update --file environment.yml"
sh "echo 'mamba activate gameservicewarden' >> ~/.bashrc"
sh "git submodule update --init --recursive"
sh "dotnet restore GameServiceWarden"
sh "dotnet restore GameServiceWarden.Tests"
sh "conda update conda -y -q"
sh "conda env update -n base --file environment.yml"
sh "conda run -n base dotnet restore gameservicewarden.sln"
}
}
stage ("Test") {
steps {
sh "dotnet test --logger xunit --no-restore GameServiceWarden.Tests"
sh "conda run -n base dotnet test --logger xunit --no-restore GameServiceWarden.Tests"
xunit([xUnitDotNet(excludesPattern: '', pattern: 'GameServiceWarden.Tests/*.Tests/TestResults/*.xml', stopProcessingIfError: true)])
}
}