本文档翻译自:https://docs.conan.io/en/latest/reference/commands/output/upload.html
:::success
Warning
这是一项实验性功能,可能会在将来的发行版中进行重大更改。
:::
conan upload
提供--json
参数来生成包含上传过程信息的文件。
输出JSON包含两个第一级密钥:
- error:如果上传完成没有错误,则为True,否则为False。
- uploaded:已上传软件包的列表。 每个元素包含:
- recipe:代表上载配方的文档。
- id:参考,例如“ openssl / 1.0.2u @”
- remote_name:上载配方的远程名称。
- remote_url:上载配方的远程URL。
- time:ISO 8601字符串以及配方上载的时间。
- packages:元素列表,代表为配方上传的二进制包。
- id:包ID,例如“ 8018a4df6e7d2b4630a814fa40c81b85b9182d2b”
- time:ISO 8601字符串以及配方上载的时间。
- recipe:代表上载配方的文档。
Example:
$ conan upload "h*" -all -r conan-center --json upload.json
upload.json¶
{
"error":false,
"uploaded":[
{
"recipe":{
"id":"hello/0.1@conan/testing",
"remote_name":"conan-center",
"remote_url":"https://conan.bintray.com",
"time":"2018-04-30T11:18:19.204728"
},
"packages":[
{
"id":"3f3387d49612e03a5306289405a2101383b861f0",
"remote_name":"conan-center",
"remote_url":"https://conan.bintray.com",
"time":"2018-04-30T11:18:21.534877"
},
{
"id":"6cc50b139b9c3d27b3e9042d5f5372d327b3a9f7",
"remote_name":"conan-center",
"remote_url":"https://conan.bintray.com",
"time":"2018-04-30T11:18:23.934152"
},
{
"id":"889d5d7812b4723bd3ef05693ffd190b1106ea43",
"remote_name":"conan-center",
"remote_url":"https://conan.bintray.com",
"time":"2018-04-30T11:18:28.195266"
},
{
"id":"e98aac15065fc710dffd1b4fbee382b087c3ad1d",
"remote_name":"conan-center",
"remote_url":"https://conan.bintray.com",
"time":"2018-04-30T11:18:30.495989"
}
]
},
{
"recipe":{
"id":"hello0/1.2.1@conan/testing",
"remote_name":"conan-center",
"remote_url":"https://conan.bintray.com",
"time":"2018-04-30T11:18:32.688651"
},
"packages":[
{
"id":"5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9",
"remote_name":"conan-center",
"remote_url":"https://conan.bintray.com",
"time":"2018-04-30T11:18:34.991721"
}
]
},
{
"recipe":{
"id":"hello_app/0.1@conan/testing",
"remote_name":"conan-center",
"remote_url":"https://conan.bintray.com",
"time":"2018-04-30T11:18:36.901333"
},
"packages":[
{
"id":"6cc50b139b9c3d27b3e9042d5f5372d327b3a9f7",
"remote_name":"conan-center",
"remote_url":"https://conan.bintray.com",
"time":"2018-04-30T11:18:39.243895"
}
]
},
{
"recipe":{
"id":"hello_python_conan/0.1@conan/testing",
"remote_name":"conan-center",
"remote_url":"https://conan.bintray.com",
"time":"2018-04-30T11:18:41.181543"
},
"packages":[
{
"id":"5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9",
"remote_name":"conan-center",
"remote_url":"https://conan.bintray.com",
"time":"2018-04-30T11:18:43.749422"
}
]
},
{
"recipe":{
"id":"hello_python_reuse_conan/0.1@conan/testing",
"remote_name":"conan-center",
"remote_url":"https://conan.bintray.com",
"time":"2018-04-30T11:18:45.614096"
},
"packages":[
{
"id":"6a051b2648c89dbd1f8ada0031105b287deea9d2",
"remote_name":"conan-center",
"remote_url":"https://conan.bintray.com",
"time":"2018-04-30T11:18:47.942491"
}
]
},
{
"recipe":{
"id":"hdf5/1.8.20@acri/testing",
"remote_name":"conan-center",
"remote_url":"https://conan.bintray.com",
"time":"2018-04-30T11:18:48.291756"
},
"packages":[
]
},
{
"recipe":{
"id":"http_parser/2.9.2",
"remote_name":"conan-center",
"remote_url":"https://conan.bintray.com",
"time":"2018-04-30T11:18:48.637576"
},
"packages":[
{
"id":"6cc50b139b9c3d27b3e9042d5f5372d327b3a9f7",
"remote_name":"conan-center",
"remote_url":"https://conan.bintray.com",
"time":"2018-04-30T11:18:51.125189"
}
]
}
]
}