From a7d362f33285af08aebf96b9adc6142b39954400 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philipp=20H=C3=A4felfinger?= Date: Tue, 25 Oct 2022 22:30:53 +0200 Subject: [PATCH] paths look better now --- Jenkinsfile | 35 ++++++++++++++--------------------- 1 file changed, 14 insertions(+), 21 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 56c444b..8b659b7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,32 +4,25 @@ pipeline { } stages { - // stage('Cloning repository') { - // steps { - // checkout scm - // } - // } - stage('nuget restore') { steps { - sh "ls -la ${env.WORKSPACE}" -// sh "cd ${env.WORKSPACE}/src" -// sh "dotnet restore" + sh "cd ${env.WORKSPACE}/src" + sh "dotnet restore" } } - // stage('build') { - // steps { - // sh "cd ${env.WORKSPACE}/src" - // sh "dotnet build -p:Version=0.1.0.${env.BUILD_NUMBER}" - // } - // } + stage('build') { + steps { + sh "cd ${env.WORKSPACE}/src" + sh "dotnet build -p:Version=0.1.0.${env.BUILD_NUMBER}" + } + } - // stage('Testing') { - // steps { - // sh "cd ${env.WORKSPACE}/src" - // sh "dotnet test" - // } - // } + stage('Testing') { + steps { + sh "cd ${env.WORKSPACE}/src" + sh "dotnet test" + } + } } }