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

Update dev-phome.jenkinsfile

上级 7bba1734
...@@ -105,10 +105,8 @@ pipeline{ ...@@ -105,10 +105,8 @@ pipeline{
stage('deploy'){ stage('deploy'){
when { expression { envProfile ==~ /dev|test/ }} when { expression { envProfile ==~ /dev|test/ }}
steps{ steps{
sh label: '', script: """ sh label: '', script: """PROJECT= `echo $JOB_NAME | cut -d '_' -f 2`
PROJECT= `echo $JOB_NAME | cut -d '_' -f 2` rsync -av $WORKSPACE/dist/* root@$ip:/usr/share/nginx/html/DEV/$PROJECT/"""
rsync -av $WORKSPACE/dist/* root@$ip:/usr/share/nginx/html/DEV/$PROJECT/
"""
} }
} }
} }
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册