|
@@ -4,8 +4,8 @@
|
|
|
def build = new org.devops.build()
|
|
|
def color = new org.devops.color()
|
|
|
|
|
|
-def String cpu = "${env.cpu}"
|
|
|
-def String imagePrefix = "${env.imagePrefix}"
|
|
|
+String cpu = "${env.cpu}"
|
|
|
+String imagePrefix = "${env.imagePrefix}"
|
|
|
|
|
|
pipeline {
|
|
|
agent {
|
|
@@ -35,7 +35,7 @@ pipeline {
|
|
|
script {
|
|
|
color.PrintMes('执行mvn打包', 'green')
|
|
|
//使用mvn方法打包,并传入打包参数.根据实际情况修改打包策略
|
|
|
- build.Build('mvn', 'mvn clean package -DskipTests=true', 'master')
|
|
|
+ build.Build('mvn', 'mvn clean deploy -DskipTests=true', 'master')
|
|
|
}
|
|
|
}
|
|
|
}
|