增加指定maven
This commit is contained in:
11
Jenkinsfile
vendored
11
Jenkinsfile
vendored
@ -1,6 +1,15 @@
|
||||
pipeline {
|
||||
agent any
|
||||
|
||||
tools {
|
||||
maven 'M3' // 这个名称要和 Global Tool Configuration 中一致
|
||||
}
|
||||
stages {
|
||||
stage('Build with Maven') {
|
||||
steps {
|
||||
sh 'mvn clean package'
|
||||
}
|
||||
}
|
||||
}
|
||||
environment {
|
||||
APP_NAME = "sczx-app"
|
||||
DOCKER_IMAGE = "${APP_NAME}:latest"
|
||||
|
||||
Reference in New Issue
Block a user