2022-12-01 17:51:54 +00:00
|
|
|
pipeline {
|
2024-07-20 15:03:57 +00:00
|
|
|
agent {
|
|
|
|
kubernetes {
|
|
|
|
cloud 'Reslate Systems'
|
|
|
|
defaultContainer 'conda'
|
|
|
|
}
|
|
|
|
}
|
2022-12-01 17:51:54 +00:00
|
|
|
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
|
|
|
}
|
2022-12-01 17:51:54 +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)])
|
|
|
|
}
|
2022-12-01 17:51:54 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|