Skip to content
代码片段 群组 项目
提交 a921af99 编辑于 作者: Lin Jen-Shin's avatar Lin Jen-Shin
浏览文件

Merge branch 'ddieulivol-curl_fail_early_for_jihu' into 'master'

Fail curl when downloading JiHu files errors out

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/127496



Merged-by: default avatarLin Jen-Shin <jen-shin@gitlab.com>
Approved-by: default avatarLin Jen-Shin <jen-shin@gitlab.com>
Co-authored-by: default avatarddieulivol <ddieulivol@gitlab.com>
No related branches found
No related tags found
无相关合并请求
...@@ -19,7 +19,7 @@ download_jh_path() { ...@@ -19,7 +19,7 @@ download_jh_path() {
echoinfo "Downloading ${path}" echoinfo "Downloading ${path}"
curl --location --output "${output}" --header "Private-Token: ${ADD_JH_FILES_TOKEN}" --get --data-urlencode "sha=${JH_BRANCH}" --data-urlencode "path=${path}" "https://gitlab.com/api/v4/projects/${GITLAB_JH_MIRROR_PROJECT}/repository/archive" curl -f --location --output "${output}" --header "Private-Token: ${ADD_JH_FILES_TOKEN}" --get --data-urlencode "sha=${JH_BRANCH}" --data-urlencode "path=${path}" "https://gitlab.com/api/v4/projects/${GITLAB_JH_MIRROR_PROJECT}/repository/archive"
tar -zxf "${output}" --strip-component 1 tar -zxf "${output}" --strip-component 1
rm "${output}" rm "${output}"
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册