提交 2a51b867 编写于 作者: zhangsiyuan's avatar zhangsiyuan

Update test-phome.jenkinsfile

上级 f124ce09
// User-defined Variables: // User-defined Variables:
def ip = "192.168.140.111" def ip = "192.168.140.111"
def ng_project = $JOB_NAME
// Git Repository // Git Repository
def repoUrl = "$git" def repoUrl = "$git"
...@@ -126,7 +125,7 @@ pipeline{ ...@@ -126,7 +125,7 @@ pipeline{
when { expression { envProfile ==~ /dev|test/ }} when { expression { envProfile ==~ /dev|test/ }}
steps{ steps{
sh """ sh """
rsync -av $WORKSPACE/dist/* root@$ip:/usr/share/nginx/html/phome/$ng_project/ rsync -av $WORKSPACE/dist/* root@$ip:/usr/share/nginx/html/phome/$(echo $JOB_NAME | awk -F['_'] '{ print $3 }')/
""" """
} }
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册