diff --git a/Dockerfile b/Dockerfile index 069520e..8270c90 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/Jenkinsfile b/Jenkinsfile index 84bf95b..6110c01 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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}'