Commit 7f67617f authored by fuyanbin's avatar fuyanbin
Browse files

上传hugep-all.zip的md5

parent 85cd9479
Pipeline #55488 passed with stages
in 2 minutes and 47 seconds
...@@ -107,8 +107,12 @@ upload() { ...@@ -107,8 +107,12 @@ upload() {
uri="product/terminal/chroot_integration/""$ORGCODE/${CHANNELID}/$(basename "$outfile")" uri="product/terminal/chroot_integration/""$ORGCODE/${CHANNELID}/$(basename "$outfile")"
obsutil cp "$outfile" obs://fae-cdn.linkfog.cn/"$uri" obsutil cp "$outfile" obs://fae-cdn.linkfog.cn/"$uri"
md5sum "${outfile}" | awk '{print $1}' > "${outfile}.md5"
uri="product/terminal/chroot_integration/""$ORGCODE/${CHANNELID}/$(basename "$outfile").md5"
obsutil cp "${outfile}.md5" obs://fae-cdn.linkfog.cn/"$uri"
result["url"]="https://fae-cdn.linkfog.cn/""$uri" result["url"]="https://fae-cdn.linkfog.cn/""$uri"
result["md5"]="$(md5sum "${outfile}" | awk '{print $1}')" result["md5"]="$(cat "${outfile}.md5")"
mkdir -p .result mkdir -p .result
jq -n --arg url "${result[url]}" --arg md5 "${result[md5]}" '{$url, $md5}' > ".result/${PROJECT_ID}-${PIPELINE_ID}.json" jq -n --arg url "${result[url]}" --arg md5 "${result[md5]}" '{$url, $md5}' > ".result/${PROJECT_ID}-${PIPELINE_ID}.json"
echo ".result/${PROJECT_ID}-${PIPELINE_ID}.json" echo ".result/${PROJECT_ID}-${PIPELINE_ID}.json"
......
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