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

Update dev-phome.jenkinsfile

上级 83c019b5
#!groovy #!groovy
// User-defined Variables: // User-defined Variables:
def ip = "192.168.140.111"
// Git Repository // Git Repository
def repoUrl = "$git" def repoUrl = "$git"
...@@ -105,7 +103,7 @@ pipeline{ ...@@ -105,7 +103,7 @@ pipeline{
stage('deploy'){ stage('deploy'){
when { expression { envProfile ==~ /dev|test/ }} when { expression { envProfile ==~ /dev|test/ }}
steps{ steps{
sh label: '', script: '''TIME=`date "+%Y%m%d%H%M"` sh label: '', script: '''
ip="192.168.140.111" ip="192.168.140.111"
PROJECT=`echo $JOB_NAME | awk -F[\'_\'] \'{ print $3 }\'` PROJECT=`echo $JOB_NAME | awk -F[\'_\'] \'{ print $3 }\'`
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 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册