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