...
|
...
|
@@ -42,7 +42,7 @@ pipeline { |
|
|
stage('qcloud deploy'){
|
|
|
steps{
|
|
|
script {
|
|
|
println "begin upload to cdn"
|
|
|
println "begin qcloud deploy"
|
|
|
if(params.deployEnv=='qcloud' || params.deployEnv=='all'){
|
|
|
//切换kubectl的认证
|
|
|
def pyworkdir="${env.WORKSPACE}/Docker-Image-Deplopy/qcloud/qcloudDeploy.py"
|
...
|
...
|
@@ -57,13 +57,13 @@ pipeline { |
|
|
stage('aws deploy'){
|
|
|
steps{
|
|
|
script {
|
|
|
println "begin upload to cdn"
|
|
|
println "begin aws deploy"
|
|
|
if(params.deployEnv=='aws' || params.deployEnv=='all'){
|
|
|
//切换kubectl的认证
|
|
|
def shellworkdir="${env.WORKSPACE}/Docker-Image-Deplopy/aws/awsdeploy.sh"
|
|
|
sh "sh ${shellworkdir} ${params.serviceName} ${params.imageInfo}"
|
|
|
}else {
|
|
|
println "aws this no need restart"
|
|
|
println "aws this no need deploy"
|
|
|
}
|
|
|
}
|
|
|
}
|
...
|
...
|
|