- .NET 10 + ABP 模块化 + FastEndpoints + MediatR CQRS - 审计系统: AuditInterceptor (IAuditable/ISoftDelete/IHasOperatorIP) - 全局异常处理: BusinessException/NotFoundException/UnauthorizedException - 数据库: PostgreSQL 17 + pgvector + EF Core - CI: Jenkinsfile
41 lines
807 B
Groovy
41 lines
807 B
Groovy
pipeline {
|
|
agent any
|
|
|
|
environment {
|
|
DOTNET_CLI_TELEMETRY_OPTOUT = '1'
|
|
PROJECT_DIR = 'backend'
|
|
}
|
|
|
|
stages {
|
|
stage('Restore') {
|
|
steps {
|
|
echo '=== Restore NuGet Packages ==='
|
|
dir("${PROJECT_DIR}") {
|
|
sh 'dotnet restore'
|
|
}
|
|
}
|
|
}
|
|
|
|
stage('Build') {
|
|
steps {
|
|
echo '=== Build Solution ==='
|
|
dir("${PROJECT_DIR}") {
|
|
sh 'dotnet build --no-restore --warnings-as-errors'
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
post {
|
|
success {
|
|
echo 'Build succeeded!'
|
|
}
|
|
failure {
|
|
echo 'Build failed!'
|
|
}
|
|
always {
|
|
cleanWs()
|
|
}
|
|
}
|
|
}
|