提交 5f7257f6 编写于 作者: zhangsiyuan's avatar zhangsiyuan

Update uat-phome.jenkinsfile

上级 0cdfe79b
// User-defined Variables: // User-defined Variables:
def ip = "192.168.121.117"
// Git Repository // Git Repository
def repoUrl = "$git" def repoUrl = "$git"
...@@ -104,9 +102,11 @@ pipeline{ ...@@ -104,9 +102,11 @@ pipeline{
stage('deploy'){ stage('deploy'){
when { expression { envProfile ==~ /test|uat/ }} when { expression { envProfile ==~ /test|uat/ }}
steps{ steps{
sh label: '', script: """ sh label: '', script: '''
rsync -av $WORKSPACE/dist/* root@$ip:/usr/share/nginx/html/phome/$JOB_NAME/ ip="192.168.121.117"
""" PROJECT=`echo $JOB_NAME | awk -F[\'_\'] \'{ print $2 }\'`
rsync -av $WORKSPACE/dist/* root@$ip:/usr/share/nginx/html/$PROJECT/
'''
} }
} }
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册