Commit 5ebad513 authored by 张欣's avatar 张欣

改配置文件名字

parent 93c7c337
......@@ -33,10 +33,10 @@ pipeline {
if ( PROFILES == 'prod' ) {
echo '接下来进行生产项目的发布...'
sh '''
sed -i "/image/{s/latest/${VERSION}/}" citybrain-webapi-deployment.yaml
sed -i "/profiles/{s/profiles/${PROFILES}/}" citybrain-webapi-deployment.yaml
sshpass scp citybrain-webapi-deployment.yaml root@172.18.39.191:/root/caosx/yml
sshpass ssh root@172.18.39.191 'kubectl apply -f /root/caosx/yml/citybrain-webapi-deployment.yaml'
sed -i "/image/{s/latest/${VERSION}/}" jiwei-api-deployment.yaml
sed -i "/profiles/{s/profiles/${PROFILES}/}" jiwei-api-deployment.yaml
sshpass scp jiwei-api-deployment.yaml root@172.18.39.191:/root/caosx/yml
sshpass ssh root@172.18.39.191 'kubectl apply -f /root/caosx/yml/jiwei-api-deployment.yaml'
'''
// kubernetesDeploy configs: 'deploy.yaml', kubeConfig: [path: ''], kubeconfigId: '3ab9d4b4-ffb9-44af-ab49-c17b64161198', secretName: '', ssh: [sshCredentialsId: '*', sshServer: ''], textCredentials: [certificateAuthorityData: '', clientCertificateData: '', clientKeyData: '', serverUrl: 'https://']
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment