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 ->