rag-backend/Jenkinsfile
xiangning a6402973ca feat: 初始化 RAG 后端项目
- .NET 10 + ABP 模块化 + FastEndpoints + MediatR CQRS
- 审计系统: AuditInterceptor (IAuditable/ISoftDelete/IHasOperatorIP)
- 全局异常处理: BusinessException/NotFoundException/UnauthorizedException
- 数据库: PostgreSQL 17 + pgvector + EF Core
- CI: Jenkinsfile
2026-05-11 02:30:07 +08:00

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()
}
}
}