增加构建环境
This commit is contained in:
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@ -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 中配置过
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user