فهرست منبع

流水线优化

dujian 1 هفته پیش
والد
کامیت
410face805

+ 4 - 1
docs/jenkins/produ/dining/Jenkinsfile

@@ -14,7 +14,10 @@ pipeline {
         string(name: 'TARGET_TAG', defaultValue: '', trim: true)
         string(name: 'HARBOR_REGISTRY', defaultValue: '39.105.153.68', trim: true)
         string(name: 'HARBOR_PROJECT', defaultValue: 'alien_cloud', trim: true)
-        choice(name: 'DEPLOY_STRATEGY', choices: ['rolling', 'canary', 'skip'])
+        choice(name: 'DEPLOY_STRATEGY', choices: ['rolling', 'canary', 'skip'],
+            description: '''rolling=更新 stable Deployment,kubectl 滚动替换 Pod(全量发版)
+canary=仅更新 *-canary Deployment,并按 CANARY_WEIGHT 设置 Ingress 灰度流量
+skip=只晋升 Harbor 镜像,不执行 kubectl''')
         string(name: 'CANARY_WEIGHT', defaultValue: '10', trim: true)
         string(name: 'K8S_NAMESPACE', defaultValue: 'alien-produ', trim: true)
         booleanParam(name: 'DRY_RUN', defaultValue: false)

+ 3 - 1
docs/jenkins/produ/gateway/Jenkinsfile

@@ -38,7 +38,9 @@ pipeline {
         choice(name: 'PROMOTE_METHOD', choices: ['harbor-api', 'docker-pull'],
             description: 'harbor-api=服务端打 tag(快,默认)')
         choice(name: 'DEPLOY_STRATEGY', choices: ['rolling', 'canary', 'skip'],
-            description: 'skip=只推 Harbor,不更新 ACK')
+            description: '''rolling=更新 stable Deployment,kubectl 滚动替换 Pod(全量发版)
+canary=仅更新 *-canary Deployment,并按 CANARY_WEIGHT 设置 Ingress 灰度流量
+skip=只晋升 Harbor 镜像,不执行 kubectl''')
         string(name: 'CANARY_WEIGHT', defaultValue: '10', trim: true)
         string(name: 'K8S_NAMESPACE', defaultValue: 'alien-produ', trim: true)
         booleanParam(name: 'DRY_RUN', defaultValue: false)

+ 4 - 1
docs/jenkins/produ/job/Jenkinsfile

@@ -14,7 +14,10 @@ pipeline {
         string(name: 'TARGET_TAG', defaultValue: '', trim: true)
         string(name: 'HARBOR_REGISTRY', defaultValue: '39.105.153.68', trim: true)
         string(name: 'HARBOR_PROJECT', defaultValue: 'alien_cloud', trim: true)
-        choice(name: 'DEPLOY_STRATEGY', choices: ['rolling', 'canary', 'skip'])
+        choice(name: 'DEPLOY_STRATEGY', choices: ['rolling', 'canary', 'skip'],
+            description: '''rolling=更新 stable Deployment,kubectl 滚动替换 Pod(全量发版)
+canary=仅更新 *-canary Deployment,并按 CANARY_WEIGHT 设置 Ingress 灰度流量
+skip=只晋升 Harbor 镜像,不执行 kubectl''')
         string(name: 'CANARY_WEIGHT', defaultValue: '10', trim: true)
         string(name: 'K8S_NAMESPACE', defaultValue: 'alien-produ', trim: true)
         booleanParam(name: 'DRY_RUN', defaultValue: false)

+ 4 - 1
docs/jenkins/produ/lawyer/Jenkinsfile

@@ -14,7 +14,10 @@ pipeline {
         string(name: 'TARGET_TAG', defaultValue: '', trim: true)
         string(name: 'HARBOR_REGISTRY', defaultValue: '39.105.153.68', trim: true)
         string(name: 'HARBOR_PROJECT', defaultValue: 'alien_cloud', trim: true)
-        choice(name: 'DEPLOY_STRATEGY', choices: ['rolling', 'canary', 'skip'])
+        choice(name: 'DEPLOY_STRATEGY', choices: ['rolling', 'canary', 'skip'],
+            description: '''rolling=更新 stable Deployment,kubectl 滚动替换 Pod(全量发版)
+canary=仅更新 *-canary Deployment,并按 CANARY_WEIGHT 设置 Ingress 灰度流量
+skip=只晋升 Harbor 镜像,不执行 kubectl''')
         string(name: 'CANARY_WEIGHT', defaultValue: '10', trim: true)
         string(name: 'K8S_NAMESPACE', defaultValue: 'alien-produ', trim: true)
         booleanParam(name: 'DRY_RUN', defaultValue: false)

+ 4 - 1
docs/jenkins/produ/promote-image/Jenkinsfile

@@ -49,7 +49,10 @@ pipeline {
         booleanParam(name: 'PARALLEL_ACK_DEPLOY', defaultValue: true)
         string(name: 'HARBOR_REGISTRY', defaultValue: '39.105.153.68', trim: true)
         string(name: 'HARBOR_PROJECT', defaultValue: 'alien_cloud', trim: true)
-        choice(name: 'DEPLOY_STRATEGY', choices: ['rolling', 'canary', 'skip'])
+        choice(name: 'DEPLOY_STRATEGY', choices: ['rolling', 'canary', 'skip'],
+            description: '''rolling=更新 stable Deployment,kubectl 滚动替换 Pod(全量发版)
+canary=仅更新 *-canary Deployment,并按 CANARY_WEIGHT 设置 Ingress 灰度流量
+skip=只晋升 Harbor 镜像,不执行 kubectl''')
         string(name: 'CANARY_WEIGHT', defaultValue: '10', trim: true)
         string(name: 'K8S_NAMESPACE', defaultValue: 'alien-produ', trim: true)
         booleanParam(name: 'DRY_RUN', defaultValue: false)

+ 4 - 1
docs/jenkins/produ/second/Jenkinsfile

@@ -14,7 +14,10 @@ pipeline {
         string(name: 'TARGET_TAG', defaultValue: '', trim: true)
         string(name: 'HARBOR_REGISTRY', defaultValue: '39.105.153.68', trim: true)
         string(name: 'HARBOR_PROJECT', defaultValue: 'alien_cloud', trim: true)
-        choice(name: 'DEPLOY_STRATEGY', choices: ['rolling', 'canary', 'skip'])
+        choice(name: 'DEPLOY_STRATEGY', choices: ['rolling', 'canary', 'skip'],
+            description: '''rolling=更新 stable Deployment,kubectl 滚动替换 Pod(全量发版)
+canary=仅更新 *-canary Deployment,并按 CANARY_WEIGHT 设置 Ingress 灰度流量
+skip=只晋升 Harbor 镜像,不执行 kubectl''')
         string(name: 'CANARY_WEIGHT', defaultValue: '10', trim: true)
         string(name: 'K8S_NAMESPACE', defaultValue: 'alien-produ', trim: true)
         booleanParam(name: 'DRY_RUN', defaultValue: false)

+ 4 - 1
docs/jenkins/produ/store-platform/Jenkinsfile

@@ -14,7 +14,10 @@ pipeline {
         string(name: 'TARGET_TAG', defaultValue: '', trim: true)
         string(name: 'HARBOR_REGISTRY', defaultValue: '39.105.153.68', trim: true)
         string(name: 'HARBOR_PROJECT', defaultValue: 'alien_cloud', trim: true)
-        choice(name: 'DEPLOY_STRATEGY', choices: ['rolling', 'canary', 'skip'])
+        choice(name: 'DEPLOY_STRATEGY', choices: ['rolling', 'canary', 'skip'],
+            description: '''rolling=更新 stable Deployment,kubectl 滚动替换 Pod(全量发版)
+canary=仅更新 *-canary Deployment,并按 CANARY_WEIGHT 设置 Ingress 灰度流量
+skip=只晋升 Harbor 镜像,不执行 kubectl''')
         string(name: 'CANARY_WEIGHT', defaultValue: '10', trim: true)
         string(name: 'K8S_NAMESPACE', defaultValue: 'alien-produ', trim: true)
         booleanParam(name: 'DRY_RUN', defaultValue: false)

+ 4 - 1
docs/jenkins/produ/store/Jenkinsfile

@@ -14,7 +14,10 @@ pipeline {
         string(name: 'TARGET_TAG', defaultValue: '', trim: true)
         string(name: 'HARBOR_REGISTRY', defaultValue: '39.105.153.68', trim: true)
         string(name: 'HARBOR_PROJECT', defaultValue: 'alien_cloud', trim: true)
-        choice(name: 'DEPLOY_STRATEGY', choices: ['rolling', 'canary', 'skip'])
+        choice(name: 'DEPLOY_STRATEGY', choices: ['rolling', 'canary', 'skip'],
+            description: '''rolling=更新 stable Deployment,kubectl 滚动替换 Pod(全量发版)
+canary=仅更新 *-canary Deployment,并按 CANARY_WEIGHT 设置 Ingress 灰度流量
+skip=只晋升 Harbor 镜像,不执行 kubectl''')
         string(name: 'CANARY_WEIGHT', defaultValue: '10', trim: true)
         string(name: 'K8S_NAMESPACE', defaultValue: 'alien-produ', trim: true)
         booleanParam(name: 'DRY_RUN', defaultValue: false)

+ 3 - 1
docs/jenkins/produ/whole/Jenkinsfile

@@ -56,7 +56,9 @@ pipeline {
         string(name: 'HARBOR_REGISTRY', defaultValue: '39.105.153.68', trim: true)
         string(name: 'HARBOR_PROJECT', defaultValue: 'alien_cloud', trim: true)
         choice(name: 'DEPLOY_STRATEGY', choices: ['rolling', 'canary', 'skip'],
-            description: 'skip=只晋升 Harbor,不 kubectl')
+            description: '''rolling=更新 stable Deployment,kubectl 滚动替换 Pod(全量发版)
+canary=仅更新 *-canary Deployment,并按 CANARY_WEIGHT 设置 Ingress 灰度流量
+skip=只晋升 Harbor 镜像,不执行 kubectl''')
         string(name: 'CANARY_WEIGHT', defaultValue: '10', trim: true)
         string(name: 'K8S_NAMESPACE', defaultValue: 'alien-produ', trim: true)
         booleanParam(name: 'DRY_RUN', defaultValue: false)