Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

实际使用场景缺失,比如 - coscmd delete -rf dist/ #301

Open
gowy222 opened this issue Jun 3, 2023 · 0 comments
Open

实际使用场景缺失,比如 - coscmd delete -rf dist/ #301

gowy222 opened this issue Jun 3, 2023 · 0 comments

Comments

@gowy222
Copy link

gowy222 commented Jun 3, 2023

实际使用场景缺失,比如 - coscmd delete -rf dist
返回的是The directory does not exist,
而如果我期望强制先删除这个文件夹 不管是否存在,再重新覆盖上传该文件夹,
// 毕竟build之后的dist产物 粒度变化,不先清除,
//cos上传机制是虚拟路径cos-key 点对点上传
//会导致残留历史build产物粒度版本文件,,占用空间

在coding-cl 流水线里面会报错 导致中断整个流水线。

    - name: 上传cos
      image: tencentcom/tencentyun-coscmd
      commands:
        - coscmd --version
        - coscmd -h
        - coscmd config -a $COS_secret_id -s $COS_secret_key -b $COS_bucket -r $COS_region -m ${COS_max_thread:-30} -p ${COS_part_size:-5} --retry ${COS_retry:-3} --timeout ${COS_timeout:-60}
        - coscmd delete -rf dist
        - coscmd upload -rs /run/workspace/dist dist

应该给个参数,目标文件夹 文件不存在 则默认执行成功!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant