2024-11-28 20:22:15 +01:00
|
|
|
pipeline {
|
|
|
|
agent any
|
|
|
|
stages {
|
2024-11-28 21:50:25 +01:00
|
|
|
stage('Restore Dependencies') {
|
2024-11-28 20:22:15 +01:00
|
|
|
steps {
|
2024-11-28 21:50:25 +01:00
|
|
|
echo 'Restoring dependencies...'
|
|
|
|
sh 'dotnet restore'
|
2024-11-28 20:22:15 +01:00
|
|
|
}
|
|
|
|
}
|
2024-11-28 21:50:25 +01:00
|
|
|
stage('Build') {
|
2024-11-28 20:22:15 +01:00
|
|
|
steps {
|
2024-11-28 21:50:25 +01:00
|
|
|
echo 'Building the project...'
|
|
|
|
sh 'dotnet build --configuration Release'
|
2024-11-28 20:22:15 +01:00
|
|
|
}
|
|
|
|
}
|
2024-11-28 21:50:25 +01:00
|
|
|
|
|
|
|
stage('Publish') {
|
2024-11-28 20:22:15 +01:00
|
|
|
steps {
|
2024-11-28 21:50:25 +01:00
|
|
|
echo 'Publishing the project...'
|
|
|
|
sh 'dotnet publish --configuration Release --output ./publish'
|
2024-11-28 20:22:15 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|