Update JenkinsFile

This commit is contained in:
s464958 2024-11-28 21:50:25 +01:00
parent 0c8df1b6dc
commit 19e1a43996

View File

@ -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'
}
}
}