本文档翻译自: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字符串以及配方上载的时间。

    Example:

    1. $ conan upload "h*" -all -r conan-center --json upload.json

    upload.json

    1. {
    2. "error":false,
    3. "uploaded":[
    4. {
    5. "recipe":{
    6. "id":"hello/0.1@conan/testing",
    7. "remote_name":"conan-center",
    8. "remote_url":"https://conan.bintray.com",
    9. "time":"2018-04-30T11:18:19.204728"
    10. },
    11. "packages":[
    12. {
    13. "id":"3f3387d49612e03a5306289405a2101383b861f0",
    14. "remote_name":"conan-center",
    15. "remote_url":"https://conan.bintray.com",
    16. "time":"2018-04-30T11:18:21.534877"
    17. },
    18. {
    19. "id":"6cc50b139b9c3d27b3e9042d5f5372d327b3a9f7",
    20. "remote_name":"conan-center",
    21. "remote_url":"https://conan.bintray.com",
    22. "time":"2018-04-30T11:18:23.934152"
    23. },
    24. {
    25. "id":"889d5d7812b4723bd3ef05693ffd190b1106ea43",
    26. "remote_name":"conan-center",
    27. "remote_url":"https://conan.bintray.com",
    28. "time":"2018-04-30T11:18:28.195266"
    29. },
    30. {
    31. "id":"e98aac15065fc710dffd1b4fbee382b087c3ad1d",
    32. "remote_name":"conan-center",
    33. "remote_url":"https://conan.bintray.com",
    34. "time":"2018-04-30T11:18:30.495989"
    35. }
    36. ]
    37. },
    38. {
    39. "recipe":{
    40. "id":"hello0/1.2.1@conan/testing",
    41. "remote_name":"conan-center",
    42. "remote_url":"https://conan.bintray.com",
    43. "time":"2018-04-30T11:18:32.688651"
    44. },
    45. "packages":[
    46. {
    47. "id":"5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9",
    48. "remote_name":"conan-center",
    49. "remote_url":"https://conan.bintray.com",
    50. "time":"2018-04-30T11:18:34.991721"
    51. }
    52. ]
    53. },
    54. {
    55. "recipe":{
    56. "id":"hello_app/0.1@conan/testing",
    57. "remote_name":"conan-center",
    58. "remote_url":"https://conan.bintray.com",
    59. "time":"2018-04-30T11:18:36.901333"
    60. },
    61. "packages":[
    62. {
    63. "id":"6cc50b139b9c3d27b3e9042d5f5372d327b3a9f7",
    64. "remote_name":"conan-center",
    65. "remote_url":"https://conan.bintray.com",
    66. "time":"2018-04-30T11:18:39.243895"
    67. }
    68. ]
    69. },
    70. {
    71. "recipe":{
    72. "id":"hello_python_conan/0.1@conan/testing",
    73. "remote_name":"conan-center",
    74. "remote_url":"https://conan.bintray.com",
    75. "time":"2018-04-30T11:18:41.181543"
    76. },
    77. "packages":[
    78. {
    79. "id":"5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9",
    80. "remote_name":"conan-center",
    81. "remote_url":"https://conan.bintray.com",
    82. "time":"2018-04-30T11:18:43.749422"
    83. }
    84. ]
    85. },
    86. {
    87. "recipe":{
    88. "id":"hello_python_reuse_conan/0.1@conan/testing",
    89. "remote_name":"conan-center",
    90. "remote_url":"https://conan.bintray.com",
    91. "time":"2018-04-30T11:18:45.614096"
    92. },
    93. "packages":[
    94. {
    95. "id":"6a051b2648c89dbd1f8ada0031105b287deea9d2",
    96. "remote_name":"conan-center",
    97. "remote_url":"https://conan.bintray.com",
    98. "time":"2018-04-30T11:18:47.942491"
    99. }
    100. ]
    101. },
    102. {
    103. "recipe":{
    104. "id":"hdf5/1.8.20@acri/testing",
    105. "remote_name":"conan-center",
    106. "remote_url":"https://conan.bintray.com",
    107. "time":"2018-04-30T11:18:48.291756"
    108. },
    109. "packages":[
    110. ]
    111. },
    112. {
    113. "recipe":{
    114. "id":"http_parser/2.9.2",
    115. "remote_name":"conan-center",
    116. "remote_url":"https://conan.bintray.com",
    117. "time":"2018-04-30T11:18:48.637576"
    118. },
    119. "packages":[
    120. {
    121. "id":"6cc50b139b9c3d27b3e9042d5f5372d327b3a9f7",
    122. "remote_name":"conan-center",
    123. "remote_url":"https://conan.bintray.com",
    124. "time":"2018-04-30T11:18:51.125189"
    125. }
    126. ]
    127. }
    128. ]
    129. }