Commit 6b02ca15 authored by root's avatar root

add teamcity/workspace/buildxml to git

parents
<?xml version="1.0" encoding="utf-8"?>
<project name="build.xml" default="publish" basedir=".">
<!-- 本机虚拟机测试环境配置 -->
<property name="virtual_xyqb" value="192.168.192.243"/>
<property name="virtual_user" value="root"/>
<property name="virtual_pass" value="quantgroup.com"/>
<property name="Virtual_xyqb_path" value="/home/quant_group/di-ting-ui"/>
<property name="level_path" value="/home/TeamCity/workspace/levelup/di-ting-ui"/>
<property name="local_path" value="/home/TeamCity/workspace/di-ting-ui/dist"/>
<property name="jar_name" value="public.tar"/>
<target name="publish" depends="upload,restart" />
<target name="upload" description="transfer the package and files to the server ">
<echo message="transfer the package and files to the server" level="info"/>
<scp file="${local_path}/${jar_name}" todir="${virtual_user}@${virtual_xyqb}:${level_path}/" password="${virtual_pass}" trust="true"/>
</target>
<target name="restart">
<sshexec host="${virtual_xyqb}" username="${virtual_user}" password="${virtual_pass}"
trust="true" command="${level_path}/levelup.sh"/>
</target>
</project>
<?xml version="1.0" encoding="utf-8"?>
<project name="build.xml" default="publish" basedir=".">
<!-- 本机虚拟机测试环境配置 -->
<property name="virtual_xyqb" value="192.168.192.213"/>
<property name="virtual_user" value="root"/>
<property name="virtual_pass" value="quantgroup.com"/>
<property name="Virtual_xyqb_path" value="/home/quant_group/di-ting-ui"/>
<property name="level_path" value="/home/TeamCity/workspace/levelup/di-ting-ui"/>
<property name="local_path" value="/home/TeamCity/workspace/di-ting-ui/dist"/>
<property name="jar_name" value="public.tar"/>
<target name="publish" depends="upload,restart" />
<target name="upload" description="transfer the package and files to the server ">
<echo message="transfer the package and files to the server" level="info"/>
<scp file="${local_path}/${jar_name}" todir="${virtual_user}@${virtual_xyqb}:${level_path}/" password="${virtual_pass}" trust="true"/>
</target>
<target name="restart">
<sshexec host="${virtual_xyqb}" username="${virtual_user}" password="${virtual_pass}"
trust="true" command="${level_path}/levelup.sh"/>
</target>
</project>
#!/bin/sh
cd /home/TeamCity/workspace/di-ting-ui/client/app
config_file=config.js
echo configfile : ${config_file}
sed -i '/^.*\/\/.*var.*apiHost/d' ./${config_file}
sed -i "/^.*var.*apiHost/c \ \ \ \ var\ apiHost\ =\ 'http:\/\/192.168.192.243:9005\/';" ./${config_file}
sed -i '/^.*\/\/.*var.*authHost/d' ./${config_file}
sed -i "/^.*var.*authHost/c \ \ \ \ var\ authHost\ =\ 'http:\/\/192.168.192.243:9002\/';" ./${config_file}
sed -i '/^.*\/\/.*var.*xyqbApiBaseUrl/d' ./${config_file}
sed -i "/^.*var.*xyqbApiBaseUrl/c \ \ \ \ var\ xyqbApiBaseUrl\ =\ 'http:\/\/192.168.192.206:9004\/';" ./${config_file}
cat ./${config_file} | grep var | grep http
cd /home/TeamCity/workspace/di-ting-ui
rm -rf /home/TeamCity/workspace/di-ting-ui/dist
#npm install
#bower install
#npm install --registry=https://registry.npm.taobao.org
#bower install --allow-root
grunt build
cd /home/TeamCity/workspace/di-ting-ui/dist
tar -cvf public.tar public/
ls -al
# check configfile
cd /home/TeamCity/workspace/di-ting-ui/dist/public/app
config_file_done=`ls -l|grep .app.js$|awk {'print $9'}`
echo configfile : ${config_file_done}
check_num=` cat ./${config_file_done} |grep xyqb.com|wc -l`
if [ "${check_num}" = 1 ]
then
echo config file is ok.
exit
else
echo some wrong about config file ,program will stop.
devil say hello
fi
#!/bin/sh
cd /home/TeamCity/workspace/di-ting-ui/client/app
config_file=config.js
echo configfile : ${config_file}
sed -i '/^.*\/\/.*var.*apiHost/d' ./${config_file}
sed -i "/^.*var.*apiHost/c \ \ \ \ var\ apiHost\ =\ 'http:\/\/192.168.192.213:9005\/';" ./${config_file}
sed -i '/^.*\/\/.*var.*authHost/d' ./${config_file}
sed -i "/^.*var.*authHost/c \ \ \ \ var\ authHost\ =\ 'http:\/\/192.168.192.213:9002\/';" ./${config_file}
sed -i '/^.*\/\/.*var.*xyqbApiBaseUrl/d' ./${config_file}
sed -i "/^.*var.*xyqbApiBaseUrl/c \ \ \ \ var\ xyqbApiBaseUrl\ =\ 'http:\/\/192.168.192.207:9004\/';" ./${config_file}
cat ./${config_file} | grep var | grep http
cd /home/TeamCity/workspace/di-ting-ui
rm -rf /home/TeamCity/workspace/di-ting-ui/dist
#npm install
#bower install --allow-root
#npm install --registry=https://registry.npm.taobao.org
#bower install --allow-root
grunt build
cd /home/TeamCity/workspace/di-ting-ui/dist
tar -cvf public.tar public/
ls -al
# check configfile
cd /home/TeamCity/workspace/di-ting-ui/dist/public/app
config_file_done=`ls -l|grep .app.js$|awk {'print $9'}`
echo configfile : ${config_file_done}
check_num=` cat ./${config_file_done} |grep xyqb.com|wc -l`
if [ "${check_num}" = 0 ]
then
echo config file is ok.
exit
else
echo some wrong about config file ,program will stop.
devil say hello
fi
<?xml version="1.0" encoding="utf-8"?>
<project name="build.xml" default="publish" basedir=".">
<!-- 本机虚拟机测试环境配置 -->
<property name="virtual_xyqb" value="192.168.192.243"/>
<property name="virtual_user" value="root"/>
<property name="virtual_pass" value="quantgroup.com"/>
<property name="Virtual_xyqb_path" value="/home/quant_group/di-ting"/>
<property name="level_path" value="/home/TeamCity/workspace/levelup/di-ting"/>
<property name="local_path" value="/home/TeamCity/workspace/di-ting/target"/>
<property name="jar_name" value="xyqb-di_ting-0.0.1-SNAPSHOT.jar"/>
<target name="publish" depends="upload,restart"/>
<target name="upload" description="transfer the package and files to the server ">
<echo message="transfer the package and files to the server" level="info"/>
<scp file="${local_path}/${jar_name}" todir="${virtual_user}@${virtual_xyqb}:${level_path}/"
password="${virtual_pass}" trust="true"/>
</target>
<target name="restart">
<sshexec host="${virtual_xyqb}" username="${virtual_user}" password="${virtual_pass}"
trust="true" command="${level_path}/levelup.sh"/>
</target>
</project>
<?xml version="1.0" encoding="utf-8"?>
<project name="build.xml" default="publish" basedir=".">
<!-- 本机虚拟机测试环境配置 -->
<property name="virtual_xyqb" value="192.168.192.213"/>
<property name="virtual_user" value="root"/>
<property name="virtual_pass" value="quantgroup.com"/>
<property name="Virtual_xyqb_path" value="/home/quant_group/di-ting"/>
<property name="level_path" value="/home/TeamCity/workspace/levelup/di-ting"/>
<property name="local_path" value="/home/TeamCity/workspace/di-ting/target"/>
<property name="jar_name" value="xyqb-di_ting-0.0.1-SNAPSHOT.jar"/>
<target name="publish" depends="upload,restart"/>
<target name="upload" description="transfer the package and files to the server ">
<echo message="transfer the package and files to the server" level="info"/>
<scp file="${local_path}/${jar_name}" todir="${virtual_user}@${virtual_xyqb}:${level_path}/"
password="${virtual_pass}" trust="true"/>
</target>
<target name="restart">
<sshexec host="${virtual_xyqb}" username="${virtual_user}" password="${virtual_pass}"
trust="true" command="${level_path}/levelup.sh"/>
</target>
</project>
<?xml version="1.0" encoding="utf-8"?>
<project name="build.xml" default="publish" basedir=".">
<!-- 本机虚拟机测试环境配置 -->
<property name="virtual_xyqb" value="192.168.192.207"/>
<property name="virtual_user" value="root"/>
<property name="virtual_pass" value="quantgroup.com"/>
<property name="Virtual_xyqb_path" value="/home/quant_group/du-jiang-yan"/>
<property name="level_path" value="/home/TeamCity/workspace/levelup/du-jiang-yan"/>
<property name="local_path" value="/home/TeamCity/workspace/du-jiang-yan/target"/>
<property name="jar_name" value="du-jiang-yan-1.0-SNAPSHOT.jar"/>
<target name="publish" depends="upload,restart"/>
<target name="upload" description="transfer the package and files to the server ">
<echo message="transfer the package and files to the server" level="info"/>
<scp file="${local_path}/${jar_name}" todir="${virtual_user}@${virtual_xyqb}:${level_path}/"
password="${virtual_pass}" trust="true"/>
</target>
<target name="restart">
<sshexec host="${virtual_xyqb}" username="${virtual_user}" password="${virtual_pass}"
trust="true" command="${level_path}/levelup.sh"/>
</target>
</project>
<?xml version="1.0" encoding="utf-8"?>
<project name="build.xml" default="publish" basedir=".">
<!-- 本机虚拟机测试环境配置 -->
<property name="virtual_xyqb" value="192.168.192.206"/>
<property name="virtual_user" value="root"/>
<property name="virtual_pass" value="quantgroup.com"/>
<property name="Virtual_xyqb_path" value="/home/quant_group/han-gu-guan"/>
<property name="level_path" value="/home/TeamCity/workspace/levelup/han-gu-guan"/>
<property name="local_path" value="/home/TeamCity/workspace/han-gu-guan/target"/>
<property name="jar_name" value="xyqb-openauth-0.0.1-SNAPSHOT.jar"/>
<target name="publish" depends="upload,restart" />
<target name="upload" description="transfer the package and files to the server ">
<echo message="transfer the package and files to the server" level="info"/>
<scp file="${local_path}/${jar_name}" todir="${virtual_user}@${virtual_xyqb}:${level_path}/" password="${virtual_pass}" trust="true"/>
</target>
<target name="restart">
<sshexec host="${virtual_xyqb}" username="${virtual_user}" password="${virtual_pass}"
trust="true" command="${level_path}/levelup.sh"/>
</target>
</project>
<?xml version="1.0" encoding="utf-8"?>
<project name="build.xml" default="publish" basedir=".">
<!-- 本机虚拟机测试环境配置 -->
<property name="virtual_xyqb" value="192.168.192.207"/>
<property name="virtual_user" value="root"/>
<property name="virtual_pass" value="quantgroup.com"/>
<property name="Virtual_xyqb_path" value="/home/quant_group/han-gu-guan"/>
<property name="level_path" value="/home/TeamCity/workspace/levelup/han-gu-guan"/>
<property name="local_path" value="/home/TeamCity/workspace/han-gu-guan/target"/>
<property name="jar_name" value="xyqb-openauth-0.0.1-SNAPSHOT.jar"/>
<target name="publish" depends="upload,restart" />
<target name="upload" description="transfer the package and files to the server ">
<echo message="transfer the package and files to the server" level="info"/>
<scp file="${local_path}/${jar_name}" todir="${virtual_user}@${virtual_xyqb}:${level_path}/" password="${virtual_pass}" trust="true"/>
</target>
<target name="restart">
<sshexec host="${virtual_xyqb}" username="${virtual_user}" password="${virtual_pass}"
trust="true" command="${level_path}/levelup.sh"/>
</target>
</project>
<?xml version="1.0" encoding="utf-8"?>
<project name="build.xml" default="publish" basedir=".">
<!-- 本机虚拟机测试环境配置 -->
<property name="virtual_xyqb" value="192.168.192.243"/>
<property name="virtual_user" value="root"/>
<property name="virtual_pass" value="123456"/>
<property name="Virtual_xyqb_path" value="/home/quant_group/jian-men-guan"/>
<property name="level_path" value="/home/TeamCity/workspace/levelup/jian-men-guan"/>
<property name="local_path" value="/home/TeamCity/workspace/jian-men-guan/target"/>
<property name="jar_name" value="risk-control-auth-1.0-SNAPSHOT.jar"/>
<target name="publish" depends="upload,restart" />
<target name="upload" description="transfer the package and files to the server ">
<echo message="transfer the package and files to the server" level="info"/>
<scp file="${local_path}/${jar_name}" todir="${virtual_user}@${virtual_xyqb}:${level_path}/" password="${virtual_pass}" trust="true"/>
</target>
<target name="restart">
<sshexec host="${virtual_xyqb}" username="${virtual_user}" password="${virtual_pass}"
trust="true" command="${level_path}/levelup.sh"/>
</target>
</project>
<?xml version="1.0" encoding="utf-8"?>
<project name="build.xml" default="publish" basedir=".">
<!-- 本机虚拟机测试环境配置 -->
<property name="virtual_xyqb" value="192.168.192.213"/>
<property name="virtual_user" value="root"/>
<property name="virtual_pass" value="quantgroup.com"/>
<property name="Virtual_xyqb_path" value="/home/quant_group/jian-men-guan"/>
<property name="level_path" value="/home/TeamCity/workspace/levelup/jian-men-guan"/>
<property name="local_path" value="/home/TeamCity/workspace/jian-men-guan/target"/>
<property name="jar_name" value="risk-control-auth-1.0-SNAPSHOT.jar"/>
<target name="publish" depends="upload,restart" />
<target name="upload" description="transfer the package and files to the server ">
<echo message="transfer the package and files to the server" level="info"/>
<scp file="${local_path}/${jar_name}" todir="${virtual_user}@${virtual_xyqb}:${level_path}/" password="${virtual_pass}" trust="true"/>
</target>
<target name="restart">
<sshexec host="${virtual_xyqb}" username="${virtual_user}" password="${virtual_pass}"
trust="true" command="${level_path}/levelup.sh"/>
</target>
</project>
<?xml version="1.0" encoding="utf-8"?>
<project name="build.xml" default="publish" basedir=".">
<!-- 本机虚拟机测试环境配置 -->
<property name="virtual_xyqb" value="192.168.192.243"/>
<property name="virtual_user" value="root"/>
<property name="virtual_pass" value="quantgroup.com"/>
<property name="Virtual_xyqb_path" value="/home/quant_group/mo-gao-ku"/>
<property name="level_path" value="/home/TeamCity/workspace/levelup/mo-gao-ku"/>
<property name="local_path" value="/home/TeamCity/workspace/mo-gao-ku/target"/>
<property name="jar_name" value="mo-gao-ku-0.0.1-SNAPSHOT.jar"/>
<target name="publish" depends="upload,restart" />
<target name="upload" description="transfer the package and files to the server ">
<echo message="transfer the package and files to the server" level="info"/>
<scp file="${local_path}/${jar_name}" todir="${virtual_user}@${virtual_xyqb}:${level_path}/" password="${virtual_pass}" trust="true"/>
</target>
<target name="restart">
<sshexec host="${virtual_xyqb}" username="${virtual_user}" password="${virtual_pass}"
trust="true" command="${level_path}/levelup.sh"/>
</target>
</project>
<?xml version="1.0" encoding="utf-8"?>
<project name="build.xml" default="publish" basedir=".">
<!-- 本机虚拟机测试环境配置 -->
<property name="virtual_xyqb" value="192.168.192.213"/>
<property name="virtual_user" value="root"/>
<property name="virtual_pass" value="quantgroup.com"/>
<property name="Virtual_xyqb_path" value="/home/quant_group/mo-gao-ku"/>
<property name="level_path" value="/home/TeamCity/workspace/levelup/mo-gao-ku"/>
<property name="local_path" value="/home/TeamCity/workspace/mo-gao-ku/target"/>
<property name="jar_name" value="mo-gao-ku-0.0.1-SNAPSHOT.jar"/>
<target name="publish" depends="upload,restart" />
<target name="upload" description="transfer the package and files to the server ">
<echo message="transfer the package and files to the server" level="info"/>
<scp file="${local_path}/${jar_name}" todir="${virtual_user}@${virtual_xyqb}:${level_path}/" password="${virtual_pass}" trust="true"/>
</target>
<target name="restart">
<sshexec host="${virtual_xyqb}" username="${virtual_user}" password="${virtual_pass}"
trust="true" command="${level_path}/levelup.sh"/>
</target>
</project>
<?xml version="1.0" encoding="utf-8"?>
<project name="build.xml" default="publish" basedir=".">
<!-- 本机虚拟机测试环境配置 -->
<property name="virtual_xyqb" value="192.168.192.207"/>
<property name="virtual_user" value="root"/>
<property name="virtual_pass" value="quantgroup.com"/>
<property name="Virtual_xyqb_path" value="/home/quant_group/qin-qiong"/>
<property name="level_path" value="/home/TeamCity/workspace/levelup/qin-qiong"/>
<property name="local_path" value="/home/TeamCity/workspace/qin-qiong"/>
<property name="jar_name" value="qin-qiong.tar.gz"/>
<target name="publish" depends="upload,restart" />
<target name="upload" description="transfer the package and files to the server ">
<echo message="transfer the package and files to the server" level="info"/>
<scp file="${local_path}/${jar_name}" todir="${virtual_user}@${virtual_xyqb}:${level_path}/" password="${virtual_pass}" trust="true"/>
</target>
<target name="restart">
<sshexec host="${virtual_xyqb}" username="${virtual_user}" password="${virtual_pass}"
trust="true" command="${level_path}/levelup.sh"/>
</target>
</project>
#!/bin/sh
cd /home/TeamCity/workspace/qin-qiong
rm -r ./qin-qiong.tar.gz
cd /home/TeamCity/workspace/qin-qiong/work
tar cfz ../qin-qiong.tar.gz ./*
if [ $? = 0 ]; then
echo Package Done
else
echo Package something wrong
exit 1
fi
exit 0
<?xml version="1.0" encoding="utf-8"?>
<project name="build.xml" default="publish" basedir=".">
<!-- 本机虚拟机测试环境配置 -->
<property name="virtual_xyqb" value="192.168.192.206"/>
<property name="virtual_user" value="root"/>
<property name="virtual_pass" value="quantgroup.com"/>
<property name="Virtual_xyqb_path" value="/home/quant_group/xyqb-ui"/>
<property name="level_path" value="/home/TeamCity/workspace/levelup/xyqb-ui"/>
<property name="local_path" value="/home/TeamCity/workspace/xyqb-ui/dist"/>
<property name="jar_name" value="public.tar"/>
<target name="publish" depends="upload,restart" />
<target name="upload" description="transfer the package and files to the server ">
<echo message="transfer the package and files to the server" level="info"/>
<scp file="${local_path}/${jar_name}" todir="${virtual_user}@${virtual_xyqb}:${level_path}/" password="${virtual_pass}" trust="true"/>
</target>
<target name="restart">
<sshexec host="${virtual_xyqb}" username="${virtual_user}" password="${virtual_pass}"
trust="true" command="${level_path}/levelup.sh"/>
</target>
</project>
<?xml version="1.0" encoding="utf-8"?>
<project name="build.xml" default="publish" basedir=".">
<!-- 本机虚拟机测试环境配置 -->
<property name="virtual_xyqb" value="192.168.192.207"/>
<property name="virtual_user" value="root"/>
<property name="virtual_pass" value="quantgroup.com"/>
<property name="Virtual_xyqb_path" value="/home/quant_group/xyqb-ui"/>
<property name="level_path" value="/home/TeamCity/workspace/levelup/xyqb-ui"/>
<property name="local_path" value="/home/TeamCity/workspace/xyqb-ui/dist"/>
<property name="jar_name" value="public.tar"/>
<target name="publish" depends="upload,restart" />
<target name="upload" description="transfer the package and files to the server ">
<echo message="transfer the package and files to the server" level="info"/>
<scp file="${local_path}/${jar_name}" todir="${virtual_user}@${virtual_xyqb}:${level_path}/" password="${virtual_pass}" trust="true"/>
</target>
<target name="restart">
<sshexec host="${virtual_xyqb}" username="${virtual_user}" password="${virtual_pass}"
trust="true" command="${level_path}/levelup.sh"/>
</target>
</project>
<?xml version="1.0" encoding="utf-8"?>
<project name="build.xml" default="publish" basedir=".">
<!-- 本机虚拟机测试环境配置 -->
<property name="virtual_xyqb" value="192.168.192.215"/>
<property name="virtual_user" value="root"/>
<property name="virtual_pass" value="quantgroup.com"/>
<property name="Virtual_xyqb_path" value="/home/quant_group/xyqb-ui"/>
<property name="level_path" value="/home/quant_group/levelup/xyqb-ui"/>
<property name="local_path" value="/home/TeamCity/workspace/xyqb-ui/dist"/>
<property name="jar_name" value="public.tar"/>
<target name="publish" depends="upload,restart" />
<target name="upload" description="transfer the package and files to the server ">
<echo message="transfer the package and files to the server" level="info"/>
<scp file="${local_path}/${jar_name}" todir="${virtual_user}@${virtual_xyqb}:${level_path}/" password="${virtual_pass}" trust="true"/>
</target>
<target name="restart">
<sshexec host="${virtual_xyqb}" username="${virtual_user}" password="${virtual_pass}"
trust="true" command="${level_path}/levelup.sh"/>
</target>
</project>
#!/bin/sh
cd /home/TeamCity/workspace/xyqb-ui/client/app
config_file=config.js
cdn_uri=http://7xr60v.com1.z0.glb.clouddn.com
cdn_space=xyqb-ui-test
echo configfile : ${config_file}
#sed -i '/^.*\/\/.*var.*apiHost/d' ./${config_file}
#sed -i "/^.*var.*apiHost/c \ \ \ \ var\ apiHost\ =\ 'http:\/\/61.50.125.14:9004\/';" ./${config_file}
#sed -i '/^.*\/\/.*var.*authHost/d' ./${config_file}
#sed -i "/^.*var.*authHost/c \ \ \ \ var\ authHost\ =\ 'http:\/\/61.50.125.14:9001\/';" ./${config_file}
#sed -i '/^.*\/\/.*var.*mogaokuHost/d' ./${config_file}
#sed -i "/^.*var.*mogaokuHost/c \ \ \ \ var\ mogaokuHost\ =\ 'http:\/\/61.50.125.14:9003\/';" ./${config_file}
rm -r ${config_file}
curl http://7xnjab.com1.z0.glb.clouddn.com/beta1.config.js -o beta1.config.js
if [ $? = 0 ]; then
echo wget config file is ok.
else
echo wget config file something unhapppy happen.
exit 1
fi
mv beta1.config.js ${config_file}
cat ./${config_file} | grep var | grep http
cd /home/TeamCity/workspace/xyqb-ui
rm -rf /home/TeamCity/workspace/xyqb-ui/dist
grunt build
cd /home/TeamCity/workspace/xyqb-ui/dist
# do something for cdnify
echo cdnfy begin
python /home/qshell/cdn.py ${cdn_space} /home/TeamCity/workspace/xyqb-ui/dist/ ${cdn_uri}
echo cdnfy end
tar -cvf public.tar public/
ls -al
# check configfile
cd /home/TeamCity/workspace/xyqb-ui/dist/public/app
# cdn process
#cd /home/TeamCity/workspace/xyqb-ui/dist/public/app
#config_file_done=`ls -l|grep .app.js$|awk {'print $9'}`
#echo configfile : ${config_file_done}
#check_num=` cat ./${config_file_done} |grep xyqb.com|wc -l`
#if [ "${check_num}" = 0 ]
# then
# echo config file is ok.
# exit
# else
# echo some wrong about config file ,program will stop.
# devil say hello
#fi
#!/bin/sh
cd /home/TeamCity/workspace/xyqb-ui/client/app
config_file=config.js
cdn_uri=http://7xr60v.com1.z0.glb.clouddn.com
cdn_space=xyqb-ui-test
echo configfile : ${config_file}
#sed -i '/^.*\/\/.*var.*apiHost/d' ./${config_file}
#sed -i "/^.*var.*apiHost/c \ \ \ \ var\ apiHost\ =\ 'http:\/\/192.168.192.207:9004\/';" ./${config_file}
#sed -i '/^.*\/\/.*var.*authHost/d' ./${config_file}
#sed -i "/^.*var.*authHost/c \ \ \ \ var\ authHost\ =\ 'http:\/\/192.168.192.207:9001\/';" ./${config_file}
#sed -i '/^.*\/\/.*var.*mogaokuHost/d' ./${config_file}
#sed -i "/^.*var.*mogaokuHost/c \ \ \ \ var\ mogaokuHost\ =\ 'http:\/\/192.168.192.213:9003\/';" ./${config_file}
rm -r ${config_file}
wget http://7xnjab.com1.z0.glb.clouddn.com/beta2.config.js
if [ $? = 0 ]; then
echo wget config file is ok.
else
echo wget config file something unhapppy happen.
exit 1
fi
mv beta2.config.js ${config_file}
cat ./${config_file} | grep var | grep http
cd /home/TeamCity/workspace/xyqb-ui
rm -rf /home/TeamCity/workspace/xyqb-ui/dist
grunt build
cd /home/TeamCity/workspace/xyqb-ui/dist
echo cdnfy begin
python /home/qshell/cdn.py ${cdn_space} /home/TeamCity/workspace/xyqb-ui/dist/ ${cdn_uri}
echo cdnfy end
tar -cvf public.tar public/
ls -al
# check configfile
cd /home/TeamCity/workspace/xyqb-ui/dist/public/app
cd /home/TeamCity/workspace/xyqb-ui/dist/public/app
#config_file_done=`ls -l|grep .app.js$|awk {'print $9'}`
#echo configfile : ${config_file_done}
#check_num=` cat ./${config_file_done} |grep xyqb.com|wc -l`
#if [ "${check_num}" = 0 ]
# then
# echo config file is ok.
# exit
# else
# echo some wrong about config file ,program will stop.
# devil say hello
#fi
#!/bin/sh
# This script is for app h5
cd /home/TeamCity/workspace/xyqb-ui/client/app
config_file=config.js
cdn_uri=http://7xr60v.com1.z0.glb.clouddn.com
cdn_space=xyqb-ui-test
echo configfile : ${config_file}
#sed -i '/^.*\/\/.*var.*apiHost/d' ./${config_file}
#sed -i "/^.*var.*apiHost/c \ \ \ \ var\ apiHost\ =\ 'http:\/\/192.168.192.207:9004\/';" ./${config_file}
#sed -i '/^.*\/\/.*var.*authHost/d' ./${config_file}
#sed -i "/^.*var.*authHost/c \ \ \ \ var\ authHost\ =\ 'http:\/\/192.168.192.207:9001\/';" ./${config_file}
#sed -i '/^.*\/\/.*var.*mogaokuHost/d' ./${config_file}
#sed -i "/^.*var.*mogaokuHost/c \ \ \ \ var\ mogaokuHost\ =\ 'http:\/\/192.168.192.213:9003\/';" ./${config_file}
rm -r ${config_file}
wget http://7xnjab.com1.z0.glb.clouddn.com/beta3.config.js
if [ $? = 0 ]; then
echo wget config file is ok.
else
echo wget config file something unhapppy happen.
exit 1
fi
mv beta3.config.js ${config_file}
cat ./${config_file} | grep var | grep http
cd /home/TeamCity/workspace/xyqb-ui
rm -rf /home/TeamCity/workspace/xyqb-ui/dist
grunt build
cd /home/TeamCity/workspace/xyqb-ui/dist
echo cdnfy begin
python /home/qshell/cdn.py ${cdn_space} /home/TeamCity/workspace/xyqb-ui/dist/ ${cdn_uri}
echo cdnfy end
tar -cvf public.tar public/
ls -al
# check configfile
cd /home/TeamCity/workspace/xyqb-ui/dist/public/app
cd /home/TeamCity/workspace/xyqb-ui/dist/public/app
#config_file_done=`ls -l|grep .app.js$|awk {'print $9'}`
#echo configfile : ${config_file_done}
#check_num=` cat ./${config_file_done} |grep xyqb.com|wc -l`
#if [ "${check_num}" = 0 ]
# then
# echo config file is ok.
# exit
# else
# echo some wrong about config file ,program will stop.
# devil say hello
#fi
#!/bin/sh
cd /home/TeamCity/workspace/xyqb-ui/client/app
config_file=config.js
echo configfile : ${config_file}
sed -i '/^.*\/\/.*var.*apiHost/d' ./${config_file}
sed -i "/^.*var.*apiHost/c \ \ \ \ var\ apiHost\ =\ 'http:\/\/192.168.192.206:9004\/';" ./${config_file}
sed -i '/^.*\/\/.*var.*authHost/d' ./${config_file}
sed -i "/^.*var.*authHost/c \ \ \ \ var\ authHost\ =\ 'http:\/\/192.168.192.206:9001\/';" ./${config_file}
sed -i '/^.*\/\/.*var.*mogaokuHost/d' ./${config_file}
sed -i "/^.*var.*mogaokuHost/c \ \ \ \ var\ mogaokuHost\ =\ 'http:\/\/192.168.192.243:9003\/';" ./${config_file}
cat ./${config_file} | grep var | grep http
cd /home/TeamCity/workspace/xyqb-ui
rm -rf /home/TeamCity/workspace/xyqb-ui/dist
grunt build
cd /home/TeamCity/workspace/xyqb-ui/dist
tar -cvf public.tar public/
ls -al
# check configfile
cd /home/TeamCity/workspace/xyqb-ui/dist/public/app
#cd /home/TeamCity/workspace/xyqb-ui/dist/public/app
#config_file_done=`ls -l|grep .app.js$|awk {'print $9'}`
#echo configfile : ${config_file_done}
#check_num=` cat ./${config_file_done} |grep xyqb.com|wc -l`
#if [ "${check_num}" = 0 ]
# then
# echo config file is ok.
# exit
# else
# echo some wrong about config file ,program will stop.
# devil say hello
#fi
<?xml version="1.0" encoding="utf-8"?>
<project name="build.xml" default="publish" basedir=".">
<!-- 本机虚拟机测试环境配置 -->
<property name="virtual_xyqb" value="192.168.192.206"/>
<property name="virtual_user" value="root"/>
<property name="virtual_pass" value="quantgroup.com"/>
<property name="Virtual_xyqb_path" value="/home/quant_group/xyqb"/>
<property name="level_path" value="/home/TeamCity/workspace/levelup/xyqb"/>
<property name="local_path" value="/home/TeamCity/workspace/xyqb/target"/>
<property name="jar_name" value="xyqb-0.0.1-SNAPSHOT.jar"/>
<target name="publish" depends="upload,restart" />
<target name="upload" description="transfer the package and files to the server ">
<echo message="transfer the package and files to the server" level="info"/>
<scp file="${local_path}/${jar_name}" todir="${virtual_user}@${virtual_xyqb}:${level_path}/" password="${virtual_pass}" trust="true"/>
</target>
<target name="restart">
<sshexec host="${virtual_xyqb}" username="${virtual_user}" password="${virtual_pass}"
trust="true" command="${level_path}/levelup.sh"/>
</target>
</project>
<?xml version="1.0" encoding="utf-8"?>
<project name="build.xml" default="publish" basedir=".">
<!-- 本机虚拟机测试环境配置 -->
<property name="virtual_xyqb" value="192.168.192.207"/>
<property name="virtual_user" value="root"/>
<property name="virtual_pass" value="quantgroup.com"/>
<property name="Virtual_xyqb_path" value="/home/quant_group/xyqb"/>
<property name="level_path" value="/home/TeamCity/workspace/levelup/xyqb"/>
<property name="local_path" value="/home/TeamCity/workspace/xyqb/target"/>
<property name="jar_name" value="xyqb-0.0.1-SNAPSHOT.jar"/>
<target name="publish" depends="upload,restart" />
<target name="upload" description="transfer the package and files to the server ">
<echo message="transfer the package and files to the server" level="info"/>
<scp file="${local_path}/${jar_name}" todir="${virtual_user}@${virtual_xyqb}:${level_path}/" password="${virtual_pass}" trust="true"/>
</target>
<target name="restart">
<sshexec host="${virtual_xyqb}" username="${virtual_user}" password="${virtual_pass}"
trust="true" command="${level_path}/levelup.sh"/>
</target>
</project>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment