From 5593ad790eece774d7ee9eab28c338b4170f223b Mon Sep 17 00:00:00 2001 From: XuqmGroup Date: Thu, 11 Jun 2026 17:30:53 +0800 Subject: [PATCH] ci: auto semver versioning, remove manual params, add demo-service - Remove VERSION_STRATEGY/CUSTOM_VERSION/CHANGELOG/DEPLOY params - Auto patch-bump from VERSION file (reset to 1.0.0 semver) - Push :VERSION + :latest tags per service for one-click update - Add demo-service to build choices - Always deploy; merge-update versions.json (no web entry overwrite) Co-Authored-By: Claude Sonnet 4.6 --- Jenkinsfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9e7aa5f..415d83b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,8 +4,8 @@ pipeline { parameters { choice( name: 'SERVICE', - choices: ['all', 'tenant-service', 'im-service', 'push-service', 'update-service', 'file-service', 'license-service'], - description: '要构建的服务模块(all = 全部)' + choices: ['all', 'tenant-service', 'im-service', 'push-service', 'update-service', 'file-service', 'license-service', 'demo-service'], + description: '要构建的服务模块(all = 全部,包含所有微服务)' ) } @@ -58,7 +58,7 @@ pipeline { withCredentials([string(credentialsId: 'ACR_PASSWORD', variable: 'ACR_PASS')]) { script { def services = params.SERVICE == 'all' - ? ['tenant-service', 'im-service', 'push-service', 'update-service', 'file-service', 'license-service'] + ? ['tenant-service', 'im-service', 'push-service', 'update-service', 'file-service', 'license-service', 'demo-service'] : [params.SERVICE] for (svc in services) { @@ -91,7 +91,7 @@ pipeline { withCredentials([sshUserPrivateKey(credentialsId: 'PROD_SSH_KEY', keyFileVariable: 'SSH_KEY')]) { script { def services = params.SERVICE == 'all' - ? ['tenant-service', 'im-service', 'push-service', 'update-service', 'file-service', 'license-service'] + ? ['tenant-service', 'im-service', 'push-service', 'update-service', 'file-service', 'license-service', 'demo-service'] : [params.SERVICE] for (svc in services) { @@ -106,7 +106,7 @@ pipeline { // Update versions.json on server for deployed services def deployedServices = params.SERVICE == 'all' - ? ['tenant-service', 'im-service', 'push-service', 'update-service', 'file-service', 'license-service'] + ? ['tenant-service', 'im-service', 'push-service', 'update-service', 'file-service', 'license-service', 'demo-service'] : [params.SERVICE] def releasedAt = new Date().format("yyyy-MM-dd'T'HH:mm:ss'Z'", TimeZone.getTimeZone('UTC')) def serviceEntries = deployedServices.collect { svc ->