增加构建环境

This commit is contained in:
2025-07-18 12:46:22 +08:00
parent 20cd03a96a
commit 8f32e19115
2 changed files with 20 additions and 1 deletions

8
Jenkinsfile vendored
View File

@ -1,5 +1,11 @@
pipeline {
agent any
agent {
dockerfile {
// 使用当前目录下的 Dockerfile.buildagent
filename "Dockerfile.buildagent"
// 可选:构建时添加标签
label "maven-jdk8"
}
tools {
maven 'M3' // 必须在 Jenkins → Manage Jenkins → Global Tool Configuration 中配置过
}