This commit is contained in:
2022-11-10 00:58:29 +08:00
parent 86524673f4
commit e2ed9d22f0

28
Jenkinsfile vendored
View File

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