From 4cf1ff53a9465086eaabeb577fdf9032df067ff2 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Thu, 1 Dec 2022 17:54:08 +0000 Subject: [PATCH] Updated Jenkinsfile. --- Jenkinsfile | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ddaa9ea..a0a14b6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,14 +2,18 @@ pipeline { agent any stages { stage ("Install") { - sh "mamba env update --file environment.yml" - sh "echo 'mamba activate props' >> ~/.bashrc" - sh "dotnet restore GameServiceWarden" - sh "dotnet restore GameServiceWarden.Tests" + steps { + sh "mamba env update --file environment.yml" + sh "echo 'mamba activate props' >> ~/.bashrc" + sh "dotnet restore GameServiceWarden" + sh "dotnet restore GameServiceWarden.Tests" + } } stage ("Test") { - sh "sh 'dotnet test --logger xunit --no-restore GameServiceWarden.Tests" - xunit([xUnitDotNet(excludesPattern: '', pattern: 'GameServiceWarden.Tests/*.Tests/TestResults/*.xml', stopProcessingIfError: true)]) + steps { + sh "sh 'dotnet test --logger xunit --no-restore GameServiceWarden.Tests" + xunit([xUnitDotNet(excludesPattern: '', pattern: 'GameServiceWarden.Tests/*.Tests/TestResults/*.xml', stopProcessingIfError: true)]) + } } } }