直接上源碼:

node {
stage('Parallel Stage') {
? parallel 'ok' : {
def remote = [:]
remote.name = "test01"
remote.host = "192.168.xx.xxx"
remote.allowAnyHosts = true
remote.user = 'xxx'
remote.password = 'xxxxxx'
stage("test01-build") {
? sshCommand remote: remote, command: "C:/jenkins/ppp.bat"
}
? },'okk' : {
? def remote = [:]
? remote.name = "test02"
? remote.host = "192.168.xx.xxx"
? remote.allowAnyHosts = true
? remote.user = 'xxx'
? remote.password = 'xxxxxx'
? stage("test02-build") {
sshCommand remote: remote, command: "C:/jenkins/qqq.bat"
? }
}
}
}
更多主機(jī)的話,繼續(xù)如上添加
你是否還在尋找穩(wěn)定的海外服務(wù)器提供商?創(chuàng)新互聯(lián)www.cdcxhl.cn海外機(jī)房具備T級(jí)流量清洗系統(tǒng)配攻擊溯源,準(zhǔn)確流量調(diào)度確保服務(wù)器高可用性,企業(yè)級(jí)服務(wù)器適合批量采購(gòu),新人活動(dòng)首月15元起,快前往官網(wǎng)查看詳情吧
網(wǎng)頁(yè)題目:pipeline實(shí)現(xiàn)多windows主機(jī)并發(fā)構(gòu)建-創(chuàng)新互聯(lián)
本文路徑:http://chinadenli.net/article4/ediie.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供品牌網(wǎng)站建設(shè)、微信公眾號(hào)、Google、python、域名注冊(cè)、動(dòng)態(tài)網(wǎng)站
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容