代码拉取完成,页面将自动刷新
def remote_72 = [:]
remote_72.name = '72'
remote_72.host = '10.40.0.72'
remote_72.user = 'root'
remote_72.password = 'KHMedtw@2858'
remote_72.allowAnyHosts = true
def remote_84 = [:]
remote_84.name = '84'
remote_84.host = '10.40.0.84'
remote_84.user = 'root'
remote_84.password = 'MHGfxgh!9734'
remote_84.allowAnyHosts = true
pipeline {
agent any
stages {
stage('check out') {
steps {
git branch: "master", credentialsId: 'a42cdcc7-4a9f-4141-b844-d88ecd6a2b57', url: 'http://10.32.0.24:8099/srm/cds/${moduleName}.git'
}
}
stage('deploy') {
steps {
sh 'rm -rf ${moduleName}-custom/static'
// sshRemove remote: remote_72, path: "${cds_home}/workspace/generate/module/${moduleName}/${moduleName}-custom"
sshPut remote: remote_84, from: "${moduleName}-custom", into: "${cds_home}/workspace/generate/module/${moduleName}"
}
}
// stage('restart') {
// steps {
// sshCommand remote: remote_84, command: "kubectl get pod `kubectl get pods -o=name | grep ${appCode} | cut -d'/' -f2` -n dt -o yaml | kubectl replace --force -f -"
// }
// }
}
post {
always {
cleanWs()
}
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。