This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
gameservicewarden/Jenkinsfile

25 lines
768 B
Plaintext
Raw Normal View History

pipeline {
2024-07-20 15:03:57 +00:00
agent {
kubernetes {
cloud 'Reslate Systems'
defaultContainer 'conda'
}
}
stages {
stage ("Install") {
2022-12-01 17:54:08 +00:00
steps {
2024-07-20 15:03:57 +00:00
sh "conda update conda -y -q"
2024-07-20 15:15:08 +00:00
sh "conda env update -n base --file environment.yml -q"
2024-07-20 15:03:57 +00:00
sh "conda run -n base dotnet restore gameservicewarden.sln"
2022-12-01 17:54:08 +00:00
}
}
stage ("Test") {
2022-12-01 17:54:08 +00:00
steps {
2024-07-20 15:15:08 +00:00
sh returnStatus: true, script: 'conda run -n base dotnet test --logger xunit --no-restore gameservicewarden.sln'
2022-12-01 17:54:08 +00:00
xunit([xUnitDotNet(excludesPattern: '', pattern: 'GameServiceWarden.Tests/*.Tests/TestResults/*.xml', stopProcessingIfError: true)])
}
}
}
}