【发布时间】:2020-04-02 08:51:54
【问题描述】:
我已尝试将测试覆盖率结果从管道上传到下载。
我将结果作为工件文件夹 (dir/**)。
我已遵循本指南:
https://confluence.atlassian.com/bitbucket/publish-and-link-your-build-artifacts-872137736.html
所以我的 bitbucket-pipelines.yml 代码是:
pipelines:
default:
- step:
name: unit tests cover report
image: aztec2docker/polymer-testing-docker
artifacts:
- unit-test-cover-report**
script:
- npm i
- npm run test-cover
- step:
name: upload
script:
- curl -X POST --user "${BB_AUTH_STRING}" "https://api.bitbucket.org/2.0/repositories/${BITBUCKET_REPO_OWNER}/${BITBUCKET_REPO_SLUG}/downloads" --form files=@"unit-test-cover-report"
它适用于单个文件,但不适用于文件夹。
所以我的问题是:
如何将完整的工件文件夹上传到 bitbucket 下载?
【问题讨论】:
标签: curl bitbucket bitbucket-pipelines