Commit 2384f5c1 authored by fuyanbin's avatar fuyanbin
Browse files

fix: 输出打包好的hugep-all.zip的url

parent 76f85411
Pipeline #55999 passed with stages
in 8 seconds
......@@ -106,12 +106,12 @@ upload() {
uri="product/terminal/chroot_integration/""$ORGCODE/${CHANNELID}/$(basename "$outfile")"
obsutil cp "$outfile" obs://fae-cdn.linkfog.cn/"$uri"
result["url"]="https://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["md5"]="$(cat "${outfile}.md5")"
mkdir -p .result
jq -n --arg url "${result[url]}" --arg md5 "${result[md5]}" '{$url, $md5}' > ".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