cf
This commit is contained in:
28
Jenkinsfile
vendored
28
Jenkinsfile
vendored
@@ -81,21 +81,21 @@ pipeline{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
stage('推送镜像'){
|
// stage('推送镜像'){
|
||||||
//没有起容器代理,默认就是jenkins环境
|
// //没有起容器代理,默认就是jenkins环境
|
||||||
//step里面卡点这么写
|
// //step里面卡点这么写
|
||||||
// input message: '需要推送远程镜像吗?', ok: '需要', parameters: [text(defaultValue: 'v1.0', description: '生产环境需要部署的版本', name: 'APP_VER')]
|
// // input message: '需要推送远程镜像吗?', ok: '需要', parameters: [text(defaultValue: 'v1.0', description: '生产环境需要部署的版本', name: 'APP_VER')]
|
||||||
|
|
||||||
//step外面这么写
|
// //step外面这么写
|
||||||
input {
|
// input {
|
||||||
message "需要推送远程镜像吗?"
|
// message "需要推送远程镜像吗?"
|
||||||
ok "需要"
|
// ok "需要"
|
||||||
parameters {
|
// parameters {
|
||||||
string(name: 'APP_VER', defaultValue: 'v1.0', description: '生产环境需要部署的版本')
|
// string(name: 'APP_VER', defaultValue: 'v1.0', description: '生产环境需要部署的版本')
|
||||||
choice choices: ['bj-01', 'sh-02', 'wuhan-01'], description: '部署的大区', name: 'DEPLOY_WHERE'
|
// choice choices: ['bj-01', 'sh-02', 'wuhan-01'], description: '部署的大区', name: 'DEPLOY_WHERE'
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
//4、部署
|
//4、部署
|
||||||
stage('部署'){
|
stage('部署'){
|
||||||
steps {
|
steps {
|
||||||
|
Reference in New Issue
Block a user