测试发版
This commit is contained in:
parent
366f9a93a7
commit
a066fe84b5
33
Jenkinsfile
vendored
33
Jenkinsfile
vendored
@ -36,5 +36,38 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stage('发版前端') {
|
||||||
|
when {
|
||||||
|
expression { params.publish_type == "ui" || params.publish_type == "all" }
|
||||||
|
}
|
||||||
|
steps {
|
||||||
|
script {
|
||||||
|
def remote = [:]
|
||||||
|
remote.name = "master"
|
||||||
|
remote.host = "192.168.109.195"
|
||||||
|
remote.allowAnyHosts = true
|
||||||
|
remote.user = "root"
|
||||||
|
remote.password = "84805353"
|
||||||
|
sshPut remote: remote, from: '$WORKSPACE/ui/dasadmin/**', into: '/das/ui/'
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// stage('发版后端') {
|
||||||
|
// when {
|
||||||
|
// expression { params.publish_type == "service" || params.publish_type == "all" }
|
||||||
|
// }
|
||||||
|
// steps {
|
||||||
|
// script {
|
||||||
|
// def remote = [:]
|
||||||
|
// remote.name = "master"
|
||||||
|
// remote.host = "192.168.109.195"
|
||||||
|
// remote.allowAnyHosts = true
|
||||||
|
// remote.user = "root"
|
||||||
|
// remote.password = "84805353"
|
||||||
|
// sshCommand remote: remote, command: 'cd /uspcloud/usp3/ && docker compose pull services-sypower && docker compose down services-sypower && docker compose up -d services-sypower'
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user