feat: xuqm-log-service 纳入 Jenkins CI/CD
- Dockerfile: 添加 xuqm-log-service 构建支持 - Jenkinsfile: 添加 xuqm-log-service 到服务列表 Co-Authored-By: Claude <noreply@anthropic.com>
这个提交包含在:
父节点
e6ef9801d2
当前提交
f075201e45
@ -17,6 +17,7 @@ COPY update-service/pom.xml ./update-service/pom.xml
|
||||
COPY demo-service/pom.xml ./demo-service/pom.xml
|
||||
COPY file-service/pom.xml ./file-service/pom.xml
|
||||
COPY license-service/pom.xml ./license-service/pom.xml
|
||||
COPY xuqm-log-service/pom.xml ./xuqm-log-service/pom.xml
|
||||
|
||||
# Pre-download dependencies using BuildKit cache mount — persisted across builds
|
||||
RUN --mount=type=cache,target=/root/.m2 \
|
||||
@ -33,6 +34,7 @@ COPY update-service ./update-service
|
||||
COPY demo-service ./demo-service
|
||||
COPY file-service ./file-service
|
||||
COPY license-service ./license-service
|
||||
COPY xuqm-log-service ./xuqm-log-service
|
||||
|
||||
RUN --mount=type=cache,target=/root/.m2 \
|
||||
mvn -s /workspace/maven-settings.xml -pl ${SERVICE_MODULE} -am -DskipTests package
|
||||
|
||||
6
Jenkinsfile
vendored
6
Jenkinsfile
vendored
@ -4,7 +4,7 @@ pipeline {
|
||||
parameters {
|
||||
choice(
|
||||
name: 'SERVICE',
|
||||
choices: ['all', 'tenant-service', 'im-service', 'push-service', 'update-service', 'file-service', 'license-service', 'demo-service'],
|
||||
choices: ['all', 'tenant-service', 'im-service', 'push-service', 'update-service', 'file-service', 'license-service', 'demo-service', 'xuqm-log-service'],
|
||||
description: '要构建的服务模块(all = 全部,每个服务独立版本号)'
|
||||
)
|
||||
}
|
||||
@ -41,7 +41,7 @@ pipeline {
|
||||
stage('Resolve Versions') {
|
||||
steps {
|
||||
script {
|
||||
def allServices = ['tenant-service', 'im-service', 'push-service', 'update-service', 'file-service', 'license-service', 'demo-service']
|
||||
def allServices = ['tenant-service', 'im-service', 'push-service', 'update-service', 'file-service', 'license-service', 'demo-service', 'xuqm-log-service']
|
||||
|
||||
// 支持从 job 名自动推断服务(如 xuqmgroup-update-service → update-service)
|
||||
def jobService = env.JOB_NAME.tokenize('/').last()
|
||||
@ -118,7 +118,7 @@ pipeline {
|
||||
// 合并更新 versions.json(只改动本次构建涉及的服务,不覆盖其它服务或 web 条目)
|
||||
def releasedAt = new Date().format("yyyy-MM-dd'T'HH:mm:ss'Z'", TimeZone.getTimeZone('UTC'))
|
||||
def builtJson = groovy.json.JsonOutput.toJson(serviceVersions)
|
||||
def allSvcsList = groovy.json.JsonOutput.toJson(['tenant-service', 'im-service', 'push-service', 'update-service', 'file-service', 'license-service', 'demo-service'])
|
||||
def allSvcsList = groovy.json.JsonOutput.toJson(['tenant-service', 'im-service', 'push-service', 'update-service', 'file-service', 'license-service', 'demo-service', 'xuqm-log-service'])
|
||||
def updateScript = """\
|
||||
import json, os
|
||||
path = '${env.VERSIONS_FILE}'
|
||||
|
||||
正在加载...
在新工单中引用
屏蔽一个用户