提交 7b133b8a 编写于 作者: ibiz_zyy's avatar ibiz_zyy

支持Git项目分支

上级 dce5b4d0
......@@ -14,16 +14,17 @@ TARGET=PSSYSTEM
<#assign config = "app"+depapp.getName()>
<#assign depnode = sysrun.getPSDevSlnMSDepApp().getPSDCMSPlatformNode()>
</#if>
<#if sys.getPSSVNInstRepo().getGitBranch()?? && sys.getPSSVNInstRepo().getGitBranch()!="">
<#assign branch=sys.getPSSVNInstRepo().getGitBranch()>
<#else>
<#assign branch='master'>
</#if>
<?xml version='1.1' encoding='UTF-8'?>
<project>
<actions/>
<description>${sys.codeName}</description>
<keepDependencies>false</keepDependencies>
<properties>
<com.gitee.jenkins.connection.GiteeConnectionProperty plugin="gitee@1.1.3">
<giteeConnection></giteeConnection>
</com.gitee.jenkins.connection.GiteeConnectionProperty>
</properties>
<properties/>
<scm class="hudson.scm.NullSCM"/>
<canRoam>true</canRoam>
<disabled>false</disabled>
......@@ -37,7 +38,7 @@ TARGET=PSSYSTEM
BUILD_ID=DONTKILLME
source /etc/profile
rm -rf ${sys.codeName?lower_case}
git clone ${sys.getPSSVNInstRepo().getGitPath()} ${sys.codeName?lower_case}/
git clone -b ${branch} ${sys.getPSSVNInstRepo().getGitPath()} ${sys.codeName?lower_case}/
export NODE_OPTIONS=--max-old-space-size=4096
cd ${sys.codeName?lower_case}
mvn clean package -Pprod
......@@ -68,4 +69,4 @@ TARGET=PSSYSTEM
<buildWrappers/>
</project>
</#if>
</#if>
\ No newline at end of file
</#if>
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册