Skip to content

Commit

Permalink
fix(old-cd): workaround cargo fetching failure for git type crates (#…
Browse files Browse the repository at this point in the history
…2923)

Ref:
https://doc.rust-lang.org/cargo/reference/config.html#netgit-fetch-with-cli
Signed-off-by: wuhuizuo <wuhuizuo@126.com>

---------

Signed-off-by: wuhuizuo <wuhuizuo@126.com>
  • Loading branch information
wuhuizuo committed Apr 17, 2024
1 parent 60ad816 commit 7c844f5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jenkins/pipelines/cd/atom-jobs/build-common.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -564,6 +564,7 @@ cp bin/* ${TARGET}/bin/
"""

buildsh["tics"] = """
export CARGO_NET_GIT_FETCH_WITH_CLI=true
git config --global --add safe.directory '*'
if [ ${RELEASE_TAG}x != ''x ];then
for a in \$(git tag --contains ${GIT_HASH}); do echo \$a && git tag -d \$a;done
Expand Down Expand Up @@ -638,6 +639,7 @@ rm -rf ${TARGET}/build-release || true
"""

buildsh["tikv"] = """
export CARGO_NET_GIT_FETCH_WITH_CLI=true
if [ ${RELEASE_TAG}x != ''x ];then
for a in \$(git tag --contains ${GIT_HASH}); do echo \$a && git tag -d \$a;done
git tag -f ${RELEASE_TAG} ${GIT_HASH}
Expand Down

0 comments on commit 7c844f5

Please sign in to comment.