Commit f75e953e authored by tywldx's avatar tywldx

change

parent 2aa26d29
This diff is collapsed.
This diff is collapsed.
#!/bin/bash
project=$1
config_server=$2
project_path=$3
params=`node $config_server/get_project_config.js -name $project -attr desc/target_path/command2`
params_arry=(${params//|/ })
desc=${params_arry[0]}
target_path=${params_arry[1]}
build_command=${params_arry[2]//\^/ }
sh $config_server/show_info.sh $project BUILD $desc `hostname`
cd $project_path/$project
rm -rf $target_path
rm -rf $project.jar
nums=(`awk '/quantgroup-sms-sdk/ {print NR}' $project_path/$project/pom.xml`)
for num in ${nums[@]}
do
lin=$[ $num+1 ]
echo "$lin"
sed -i "${lin}s/^.*$/\<version\>2.0.0.3-SNAPSHOT\<\/version\>/" $project_path/$project/pom.xml
done
echo "$build_command"
$build_command
if [ $? = 0 ]; then
echo "${project} build ok"
else
echo "${project} build fail"
exit -1
fi
echo "$target_path"
mv $project_path/$project/$target_path/*.jar $project_path/$project/$project.jar
\ No newline at end of file
#!/bin/bash
project=$1
config_server=$2
project_path=$3
project=$1
params=`node $config_server/get_project_config.js -name $project -attr desc/config_file/command/node_version`
params_arry=(${params//|/ })
desc=${params_arry[0]}
config_file=${params_arry[1]}
command=${params_arry[2]//\^/ }
node_version=${params_arry[3]}
sh $config_server/show_info.sh $project BUILD $desc `hostname`
# 第一步 将nginx项目的所有文件进行打包
cd $project_path/$project
#第二步 关联配置文件
rm -rf ./$config_file
echo "------ln -s $config_path/node/$project.* ./$config_file"
ln -s $config_path/node/$project.* ./$config_file
npm config set "@types:registry" http://registry.npmjs.org/
npm --registry http://172.16.3.15:4873 install
#!/bin/bash
project=$1
config_server=$2
project_path=$3
params=`node $config_server/get_project_config.js -name $project -attr desc/config_file/command/node_version`
params_arry=(${params//|/ })
desc=${params_arry[0]}
config_file=${params_arry[1]}
command=${params_arry[2]//\^/ }
node_version=${params_arry[3]}
sh $config_server/show_info.sh $project BUILD $desc `hostname`
# 第一步 将nginx项目的所有文件进行打包
cd $project_path/$project
if [ "$node_version" = "node4" ] ;then
echo "----node-V4---${node4_path}/npm install"
${node4_path}/npm install
else
npm --registry http://172.16.3.15:4873 install
fi
bower_json=`find ./ -maxdepth 1 -name "bower.json"`
if [ -n "$bower_json" ];then
echo "bower install --allow-root"
bower install --allow-root
else
echo "don't have bower.json"
fi
$command
# 第二步 不关机使得nginx生效
nginx -t; nginx -s reload
\ No newline at end of file
#!/bin/bash
project=$1
config_server=$2
project_path=$3
params=`node $config_server/get_project_config.js -name $project -attr desc/config_file`
params_arry=(${params//|/ })
desc=${params_arry[0]}
config_file=${params_arry[1]}
sh $config_server/show_info.sh $project BUILD $desc `hostname`
cd $project_path/$project
setup_path_temp=`find ./ -name "setup.py"`
python ${setup_path_temp} install
#第四步 关联配置文件
rm -rf $config_file
ln -s $config_path/python/$project.* $config_file
\ No newline at end of file
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