提交 6ebc63cd 编写于 作者: sq3536's avatar sq3536

init

上级 e59191f8
...@@ -99,7 +99,6 @@ TARGET=PSSYSTEM ...@@ -99,7 +99,6 @@ TARGET=PSSYSTEM
if [[ $para3 = all ]];then if [[ $para3 = all ]];then
sed -i "s#BaseUrl#//BaseUrl#g" public/environments/environment.js sed -i "s#BaseUrl#//BaseUrl#g" public/environments/environment.js
sed -i "3a BaseUrl: '/<#if sys.getDeploySysId()??><#if (sys.getDeploySysId()?length gt 16)>${sys.getName()?lower_case}<#else>${sys.getDeploySysId()?lower_case}</#if><#else>${sys.getName()?lower_case}</#if>__${pub.getPSApplication().getPKGCodeName()?lower_case}'," public/environments/environment.js sed -i "3a BaseUrl: '/<#if sys.getDeploySysId()??><#if (sys.getDeploySysId()?length gt 16)>${sys.getName()?lower_case}<#else>${sys.getDeploySysId()?lower_case}</#if><#else>${sys.getName()?lower_case}</#if>__${pub.getPSApplication().getPKGCodeName()?lower_case}'," public/environments/environment.js
cat public/environments/environment.js
sed -i "s#outputDir#//outputDir#g" vue.config.js sed -i "s#outputDir#//outputDir#g" vue.config.js
yarn yarn
ln -s /var/lib/jenkins/appcache/${depapp.getId()} node_modules/.cache ln -s /var/lib/jenkins/appcache/${depapp.getId()} node_modules/.cache
...@@ -130,7 +129,7 @@ TARGET=PSSYSTEM ...@@ -130,7 +129,7 @@ TARGET=PSSYSTEM
mv <#if pub?? && pub.getModelFolder?? && pub.getModelFolder()??> ../../${pub.getModelFolder()}/PSSYSAPPS/${pub.getPSApplication().getCodeName()}</#if> model mv <#if pub?? && pub.getModelFolder?? && pub.getModelFolder()??> ../../${pub.getModelFolder()}/PSSYSAPPS/${pub.getPSApplication().getCodeName()}</#if> model
else else
mv <#if pub?? && pub.getModelFolder?? && pub.getModelFolder()??> ../${pub.getModelFolder()}/PSSYSAPPS/${pub.getPSApplication().getCodeName()}</#if> model mv <#if pub?? && pub.getModelFolder?? && pub.getModelFolder()??> ../${pub.getModelFolder()}/PSSYSAPPS/${pub.getPSApplication().getCodeName()}</#if> model
fi fi
sed -i "s#srcimagename#$para4#g" Dockerfile-MODEL sed -i "s#srcimagename#$para4#g" Dockerfile-MODEL
mv Dockerfile-MODEL Dockerfile mv Dockerfile-MODEL Dockerfile
fi fi
...@@ -146,17 +145,19 @@ TARGET=PSSYSTEM ...@@ -146,17 +145,19 @@ TARGET=PSSYSTEM
</#if> </#if>
</#if> </#if>
</#if> </#if>
<#if sysrun.getRunMode() == "STARTMSAPI"> <#if sysrun.getRunMode() == "STARTMSAPI">
<#if depapi.getUserParam("dockerimage","")?? && depapi.getUserParam("dockerimage","")!=""> <#if depapi.getUserParam("dockerimage","")?? && depapi.getUserParam("dockerimage","")!="">
cd ${pub.getCodeName()?lower_case}-boot cd ${pub.getCodeName()?lower_case}-boot
docker -H $para1 stack deploy --compose-file=src/main/docker/${pub.getCodeName()?lower_case}-boot-${pub.getPSSysServiceAPI().getCodeName()?lower_case}.yaml ${depplatform.getName()} --with-registry-auth docker -H $para1 stack deploy --compose-file=src/main/docker/${pub.getCodeName()?lower_case}-boot-${pub.getPSSysServiceAPI().getCodeName()?lower_case}.yaml ${depplatform.getName()} --with-registry-auth
<#else> <#else>
cd ${pub.getCodeName()?lower_case}-boot cd ${pub.getCodeName()?lower_case}-boot
mvn ibizlabcli:code mvn ibizlabcli:code
cd .. cd ..
set +e
git add . git add .
git commit -m "generator before deploy $para5" git commit -m "generator before deploy $para5"
git push origin master git push origin master
set -e
mvn package -Pboot mvn package -Pboot
<#if pub.getPSDeployCenter().getCDType()?? && (pub.getPSDeployCenter().getCDType()=="SWARM") > <#if pub.getPSDeployCenter().getCDType()?? && (pub.getPSDeployCenter().getCDType()=="SWARM") >
cd ${pub.getCodeName()?lower_case}-boot cd ${pub.getCodeName()?lower_case}-boot
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册