|
@@ -103,8 +103,7 @@ node {
|
|
|
// 当前待处理项目
|
|
|
def current_app_name = PROJECT_SERVICE_NAME_SELECT[i];
|
|
|
def current_app_jar = "${current_app_name}.jar";
|
|
|
- // 父工程
|
|
|
- def current_app_parent = ""
|
|
|
+
|
|
|
// 端口号
|
|
|
def current_app_port = ""
|
|
|
|
|
@@ -113,12 +112,10 @@ node {
|
|
|
script {
|
|
|
switch (current_app_name) {
|
|
|
case "admin":
|
|
|
- current_app_parent = ""
|
|
|
current_app_port = "60667"
|
|
|
break
|
|
|
case "gateway":
|
|
|
current_app_port = "8443"
|
|
|
- current_app_parent = ""
|
|
|
break
|
|
|
}
|
|
|
}
|
|
@@ -127,9 +124,9 @@ node {
|
|
|
|
|
|
|
|
|
if ("${IS_SKIP_BUILD}" != "true") {
|
|
|
- sh "${mavenHome}/bin/mvn -f ${current_app_parent}/${current_app_name} clean install -Dmaven.test.skip=true"
|
|
|
+ sh "${mavenHome}/bin/mvn -f ${current_app_name} clean install -Dmaven.test.skip=true"
|
|
|
|
|
|
- sh "cp ${current_app_parent}/${current_app_name}/target/${current_app_jar} ${JENKINS_WORKSPACE}/docker"
|
|
|
+ sh "cp ${current_app_name}/target/${current_app_jar} ${JENKINS_WORKSPACE}/docker"
|
|
|
}
|
|
|
|
|
|
// app镜像
|