| @@ -3,6 +3,10 @@ | |||||
| #记录开始时间 | #记录开始时间 | ||||
| startTime=$(date +%s) | startTime=$(date +%s) | ||||
| # 登录到目标环境 | |||||
| baseDir="/home/somuns/ci4s" | |||||
| cd ${baseDir} | |||||
| #build | #build | ||||
| # 默认参数 | # 默认参数 | ||||
| branch="master" | branch="master" | ||||
| @@ -64,10 +68,6 @@ fi | |||||
| chmod +777 ${baseDir}/k8s/*.sh | chmod +777 ${baseDir}/k8s/*.sh | ||||
| # 登录到目标环境 | |||||
| baseDir="/home/somuns/ci4s" | |||||
| cd ${baseDir} | |||||
| echo "start build" | echo "start build" | ||||
| sh ${baseDir}/k8s/build.sh -b ${branch} -s ${service} | sh ${baseDir}/k8s/build.sh -b ${branch} -s ${service} | ||||
| if [ $? -ne 0 ]; then | if [ $? -ne 0 ]; then | ||||