25 lines
597 B
Plaintext
25 lines
597 B
Plaintext
pipeline {
|
|
agent any
|
|
stages {
|
|
stage('Restore Dependencies') {
|
|
steps {
|
|
echo 'Restoring dependencies...'
|
|
sh 'dotnet restore'
|
|
}
|
|
}
|
|
stage('Build') {
|
|
steps {
|
|
echo 'Building the project...'
|
|
sh 'dotnet build --configuration Release'
|
|
}
|
|
}
|
|
|
|
stage('Publish') {
|
|
steps {
|
|
echo 'Publishing the project...'
|
|
sh 'dotnet publish --configuration Release --output ./publish'
|
|
}
|
|
}
|
|
}
|
|
}
|