|
|
@ -3,7 +3,8 @@ pipeline { |
|
|
|
parameters { |
|
|
|
parameters { |
|
|
|
string(name: 'PROJECT_VERSION', defaultValue: '3.8.0', description: '构建版本') |
|
|
|
string(name: 'PROJECT_VERSION', defaultValue: '3.8.0', description: '构建版本') |
|
|
|
string(name: 'PROJECT_KEY', defaultValue: 'ruoyi', description: '项目唯一标识') |
|
|
|
string(name: 'PROJECT_KEY', defaultValue: 'ruoyi', description: '项目唯一标识') |
|
|
|
string(name: 'NEXUS_URL', defaultValue: 'ruoyi', description: '制品仓库') |
|
|
|
string(name: 'NEXUS_JAVA_URL', defaultValue: 'ruoyi', description: '后端制品仓库') |
|
|
|
|
|
|
|
string(name: 'NEXUS_DIST_URL', defaultValue: 'ruoyi', description: '前端制品仓库') |
|
|
|
string(name: 'DOCKER_JAVA_IMAGE_NAME', defaultValue: 'library/ruoyi-backend', description: 'Docker后端镜像名称') |
|
|
|
string(name: 'DOCKER_JAVA_IMAGE_NAME', defaultValue: 'library/ruoyi-backend', description: 'Docker后端镜像名称') |
|
|
|
string(name: 'DOCKER_DIST_IMAGE_NAME', defaultValue: 'library/ruoyi-fronted', description: 'Docker前端镜像名称') |
|
|
|
string(name: 'DOCKER_DIST_IMAGE_NAME', defaultValue: 'library/ruoyi-fronted', description: 'Docker前端镜像名称') |
|
|
|
string(name: 'DOCKER_REGISTRY_URL', defaultValue: '10.36.176.175', description: 'Docker 镜像仓库地址') |
|
|
|
string(name: 'DOCKER_REGISTRY_URL', defaultValue: '10.36.176.175', description: 'Docker 镜像仓库地址') |
|
|
@ -88,7 +89,7 @@ pipeline { |
|
|
|
-Dpackaging=jar \ |
|
|
|
-Dpackaging=jar \ |
|
|
|
-Dfile=ruoyi-admin/target/ruoyi-admin.jar \ |
|
|
|
-Dfile=ruoyi-admin/target/ruoyi-admin.jar \ |
|
|
|
-DrepositoryId=nexus \ |
|
|
|
-DrepositoryId=nexus \ |
|
|
|
-Durl=http://${NEXUS_USERNAME}:${NEXUS_PASSWORD}@10.36.176.175:8081/repository/${params.NEXUS_URL}/ |
|
|
|
-Durl=http://${NEXUS_USERNAME}:${NEXUS_PASSWORD}@10.36.176.175:8081/repository/${params.NEXUS_JAVA_URL}/ |
|
|
|
""" |
|
|
|
""" |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -103,7 +104,7 @@ pipeline { |
|
|
|
sh """ |
|
|
|
sh """ |
|
|
|
cd ruoyi-ui |
|
|
|
cd ruoyi-ui |
|
|
|
zip -r build.zip dist |
|
|
|
zip -r build.zip dist |
|
|
|
curl -v -u $NEXUS_USERNAME:$NEXUS_PASSWORD --upload-file build.zip http://10.36.176.175:8081/repository/ruoyi-dist/build-${params.PROJECT_VERSION}.zip |
|
|
|
curl -v -u $NEXUS_USERNAME:$NEXUS_PASSWORD --upload-file build.zip http://10.36.176.175:8081/repository/${params.NEXUS_DIST_URL}/build-${params.PROJECT_VERSION}.zip |
|
|
|
""" |
|
|
|
""" |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|