From e2ed9d22f0a142f52734fde7a149eb8851f2d5d0 Mon Sep 17 00:00:00 2001 From: jiayuqi7813 <1783671926@qq.com> Date: Thu, 10 Nov 2022 00:58:29 +0800 Subject: [PATCH] cf --- Jenkinsfile | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index da57a26..900b6cf 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -81,21 +81,21 @@ pipeline{ } } - stage('推送镜像'){ - //没有起容器代理,默认就是jenkins环境 - //step里面卡点这么写 -// input message: '需要推送远程镜像吗?', ok: '需要', parameters: [text(defaultValue: 'v1.0', description: '生产环境需要部署的版本', name: 'APP_VER')] +// stage('推送镜像'){ +// //没有起容器代理,默认就是jenkins环境 +// //step里面卡点这么写 +// // input message: '需要推送远程镜像吗?', ok: '需要', parameters: [text(defaultValue: 'v1.0', description: '生产环境需要部署的版本', name: 'APP_VER')] - //step外面这么写 - input { - message "需要推送远程镜像吗?" - ok "需要" - parameters { - string(name: 'APP_VER', defaultValue: 'v1.0', description: '生产环境需要部署的版本') - choice choices: ['bj-01', 'sh-02', 'wuhan-01'], description: '部署的大区', name: 'DEPLOY_WHERE' - } - } - } +// //step外面这么写 +// input { +// message "需要推送远程镜像吗?" +// ok "需要" +// parameters { +// string(name: 'APP_VER', defaultValue: 'v1.0', description: '生产环境需要部署的版本') +// choice choices: ['bj-01', 'sh-02', 'wuhan-01'], description: '部署的大区', name: 'DEPLOY_WHERE' +// } +// } +// } //4、部署 stage('部署'){ steps {