fix: 更新 Jenkinsfile 路径(backend 为仓库根目录)

This commit is contained in:
xiangning 2026-05-11 02:30:22 +08:00
parent a6402973ca
commit 978247fd55

9
Jenkinsfile vendored
View File

@ -3,25 +3,20 @@ pipeline {
environment {
DOTNET_CLI_TELEMETRY_OPTOUT = '1'
PROJECT_DIR = 'backend'
}
stages {
stage('Restore') {
steps {
echo '=== Restore NuGet Packages ==='
dir("${PROJECT_DIR}") {
sh 'dotnet restore'
}
sh 'dotnet restore'
}
}
stage('Build') {
steps {
echo '=== Build Solution ==='
dir("${PROJECT_DIR}") {
sh 'dotnet build --no-restore --warnings-as-errors'
}
sh 'dotnet build --no-restore --warnings-as-errors'
}
}
}