Circle Ci 2.0工件URL

Gri*_*ost 8 artifacts circleci

可以使用以下URL访问Circle Ci 2.0工件

https://{BUILD_NUMBER}-{UNKNOWN_NUMBER}-gh.circle-artifacts.com/0

CI内部编号之后的编号代表什么。

edd*_*ies 5

如果像我一样,您正在寻找一种以编程方式引用CircleCI(2.0)工件的方法,那么以下url结构对我有用:

https://circleci.com/api/v1.1/project/:vcs-type/:username/:project/:build_num/artifacts/0/:path-to-artifact?circle-token=:token&branch=:branch
Run Code Online (Sandbox Code Playgroud)

例如:

https://circleci.com/api/v1.1/project/github/circleci/circleci-docs/latest/artifacts/0/run-results/build-results.txt?branch=realitycheck&filter=successful

解决build-results.txt了Circle-docs项目的realisticcheck分支的最新成功构建中的工件。

构建:path-to-artifact可以通过检查你的CircleCI文物的目录结构来完成:

在此处输入图片说明

从上面看,:path-to-artifact0/run-results/build-results.txt

参考: