fix: 更新 Jenkinsfile 路径(backend 为仓库根目录)
This commit is contained in:
parent
a6402973ca
commit
978247fd55
9
Jenkinsfile
vendored
9
Jenkinsfile
vendored
@ -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'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user