提交 75024e74 编写于 作者: zhangsiyuan's avatar zhangsiyuan

Update pro-phome.jenkinsfile

上级 6ff1fe72
// User-defined Variables: // User-defined Variables:
def ip = "192.168.121.117" def ip1 = "106.15.93.220"
def ip2 = "101.132.177.152"
// Git Repository // Git Repository
def repoUrl = "$git" def repoUrl = "$git"
...@@ -104,7 +105,8 @@ pipeline{ ...@@ -104,7 +105,8 @@ pipeline{
when { expression { envProfile ==~ /prod|uat/ }} when { expression { envProfile ==~ /prod|uat/ }}
steps{ steps{
sh label: '', script: """ sh label: '', script: """
rsync -av $WORKSPACE/dist/* root@$ip:/usr/share/nginx/html/phome/$JOB_NAME/ rsync -av $WORKSPACE/dist/* root@$ip1:/usr/share/nginx/html/phome/$JOB_NAME/
rsync -av $WORKSPACE/dist/* root@$ip2:/usr/share/nginx/html/phome/$JOB_NAME/
""" """
} }
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册