后台服务接入Jenkins

This commit is contained in:
luozhun 2024-10-31 11:06:20 +08:00
parent ddc474d2d0
commit 09b798dcd2
1 changed files with 2 additions and 1 deletions

View File

@ -25,7 +25,8 @@ pipeline {
script{ script{
def remote = [:] def remote = [:]
remote.name = 'serverRoot' remote.name = 'serverRoot'
remote.host = '118.253.177.137:55555' remote.host = '118.253.177.137'
remote.port = 55555
remote.allowAnyHosts = true remote.allowAnyHosts = true
withCredentials([usernamePassword(credentialsId: '4', passwordVariable: 'password', usernameVariable: 'username')]) { withCredentials([usernamePassword(credentialsId: '4', passwordVariable: 'password', usernameVariable: 'username')]) {
remote.user = "${username}" remote.user = "${username}"