From 19e1a43996707f7a4ab9729bc4a39fcc20d81c26 Mon Sep 17 00:00:00 2001 From: s464958 Date: Thu, 28 Nov 2024 21:50:25 +0100 Subject: [PATCH] Update JenkinsFile --- JenkinsFile | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/JenkinsFile b/JenkinsFile index 479058f..c709a2a 100644 --- a/JenkinsFile +++ b/JenkinsFile @@ -1,19 +1,23 @@ pipeline { agent any stages { + stage('Restore Dependencies') { + steps { + echo 'Restoring dependencies...' + sh 'dotnet restore' + } + } stage('Build') { steps { - echo 'Building...' + echo 'Building the project...' + sh 'dotnet build --configuration Release' } } - stage('Test') { + + stage('Publish') { steps { - echo 'Testing...' - } - } - stage('Deploy') { - steps { - echo 'Deploying...' + echo 'Publishing the project...' + sh 'dotnet publish --configuration Release --output ./publish' } } }