Commit 4d0ec236 by tingweiwang

Update update_configmap.sh

1 parent 520e46f4
Showing with 6 additions and 6 deletions
#!/bin/bash #!/bin/bash
configmap_branch=$1 configmap_branch=$1
project_name=$2 #项目名称,由jenkins传递 ,kpl还是gpuhub。 #project_name=$2 #项目名称,由jenkins传递 ,kpl还是gpuhub。
seetaas_deploy_workspace=/root/seetaas-deploy seetaas_deploy_workspace=/root/seetaas-deploy
gpuhub_deploy_workspace=/root/gpuhub-deploy gpuhub_deploy_workspace=/root/gpuhub-deploy
echo "开始判断configmap-kpl目录是否在目标位置" echo "开始判断configmap-kpl目录是否在目标位置"
...@@ -14,14 +14,14 @@ echo "#################下载新版本的configmap配置模板#################" ...@@ -14,14 +14,14 @@ echo "#################下载新版本的configmap配置模板#################"
sleep 3 sleep 3
git clone -b $configmap_branch git@gitlab.seetatech.com:tingweiwang/configmap-kpl.git /root/configmap-kpl git clone -b $configmap_branch git@gitlab.seetatech.com:tingweiwang/configmap-kpl.git /root/configmap-kpl
if [ $2 == kpl ]; then #if [ $2 == kpl ]; then
echo "###########执行ansible roles渲染configmap配置文件#############" echo "###########执行ansible roles渲染configmap配置文件#############"
cd $seetaas_deploy_workspace && sh script/feature/update-config.sh ksy #该脚本调用三个roles,包括修改及创建kpl autodl的configmap模板。以及批量修改Makefile cd $seetaas_deploy_workspace && sh script/feature/update-config.sh ksy #该脚本调用三个roles,包括修改及创建kpl autodl的configmap模板。以及批量修改Makefile
fi #fi
if [ $2 == gpuhub ]; then #if [ $2 == gpuhub ]; then
cd $gpuhub_deploy_workspace && sh script/feature/update-config.sh ksy #该脚本调用三个roles,包括修改及创建kpl autodl的configmap模板。以及批量修改Makefile #cd $gpuhub_deploy_workspace && sh script/feature/update-config.sh ksy #该脚本调用三个roles,包括修改及创建kpl autodl的configmap模板。以及批量修改Makefile
fi #fi
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!