rag-backend/Jenkinsfile

36 lines
651 B
Groovy

pipeline {
agent any
environment {
DOTNET_CLI_TELEMETRY_OPTOUT = '1'
}
stages {
stage('Restore') {
steps {
echo '=== Restore NuGet Packages ==='
sh 'dotnet restore'
}
}
stage('Build') {
steps {
echo '=== Build Solution ==='
sh 'dotnet build --no-restore --warnings-as-errors'
}
}
}
post {
success {
echo 'Build succeeded!'
}
failure {
echo 'Build failed!'
}
always {
cleanWs()
}
}
}