当前仓库属于暂停状态,部分功能使用受限,详情请查阅 仓库状态说明
10 Star 88 Fork 51

xuxiaowei-cloud / xuxiaowei-cloud
暂停

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
cos.sh 880 Bytes
一键复制 编辑 原始数据 按行查看 历史
徐晓伟 提交于 2023-02-21 23:10 . :hammer:sh
#!/bin/bash
echo "cos:" > .cos.yaml
echo " base:" >> .cos.yaml
echo " secretid: $secretid" >> .cos.yaml
echo " secretkey: $secretkey" >> .cos.yaml
echo " sessiontoken: \"\"" >> .cos.yaml
echo " protocol: https" >> .cos.yaml
echo " buckets:" >> .cos.yaml
echo " - name: $bucketname_appid" >> .cos.yaml
echo " alias: $bucketname_appid" >> .cos.yaml
echo " region: \"\"" >> .cos.yaml
echo " endpoint: $cos_endpoint" >> .cos.yaml
echo "根据要储存文件名的特点查找文件(排除.m2文件夹)"
for file in $(find . -path ./.m2 -prune -o -name *-*-*.pom -o -name *-*-*.jar -o -name *-*-*.*.asc); do
if [ './.m2' == $file ]; then
continue
fi
echo $file
./coscli -c ./.cos.yaml cp $file cos://private-1255740549/$CI_SERVER_HOST/$CI_PROJECT_PATH/pipelines-$CI_PIPELINE_ID-jobs-$CI_JOB_ID-$CI_COMMIT_SHORT_SHA${file#*target}
done
Java
1
https://gitee.com/xuxiaowei-cloud/xuxiaowei-cloud.git
git@gitee.com:xuxiaowei-cloud/xuxiaowei-cloud.git
xuxiaowei-cloud
xuxiaowei-cloud
xuxiaowei-cloud
main

搜索帮助