Skip to content

Commit 1961045

Browse files
committed
Add docs for art:build-info append --build-info-file argument
1 parent ab21f44 commit 1961045

File tree

2 files changed

+23
-9
lines changed

2 files changed

+23
-9
lines changed

extensions/commands/art/README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,11 +84,23 @@ create a new Build Info that aggregates that information:
8484

8585
```
8686
conan art:build-info append mybuildname_aggregated 1 --build-info=mybuildname_release,1 --build-info=mybuildname_debug,1 --server my_artifactory > mybuildname_aggregated.json
87-
conan art:build-info upload mybuildname_aggregated.json --server my_artifactory
8887
```
8988

9089
This is handy in order to make promotions of packages from one repository to another in Artifactory.
9190

91+
**Note**: You can also append Build Info's without the need to upload them individually beforehand.
92+
Just append them by file with this equivalent command:
93+
94+
```
95+
conan art:build-info append mybuildname_aggregated 1 --build-info-file=mybuildname_release.json --build-info-file=mybuildname_debug.json > mybuildname_aggregated.json
96+
```
97+
98+
Now you can upload the aggregated Build Info to Artifactory:
99+
100+
```
101+
conan art:build-info upload mybuildname_aggregated.json --server my_artifactory
102+
```
103+
92104
#### 5. Promote all the binaries of the aggregated build info
93105

94106
```

extensions/commands/art/readme_build_info.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,21 @@ optional arguments:
3131

3232
```
3333
$ conan art:build-info append --help
34-
usage: conan build-info append [-h] [-v [V]] [-cc CORE_CONF] [--project PROJECT] [--server SERVER] [--url URL] [--user USER] [--password PASSWORD] [--token TOKEN]
35-
[--build-info BUILD_INFO]
36-
build_name build_number
34+
usage: conan art:build-info append [-h] [--out-file OUT_FILE] [-v [{quiet,error,warning,notice,status,verbose,debug,v,trace,vv}]] [-cc CORE_CONF] [--project PROJECT] [--server SERVER] [--url URL] [--user USER] [--password PASSWORD]
35+
[--token TOKEN] [--build-info BUILD_INFO] [--build-info-file BUILD_INFO_FILE]
36+
build_name build_number
3737
3838
Append published build to the build info.
3939
4040
positional arguments:
4141
build_name The current build name.
4242
build_number The current build number.
4343
44-
optional arguments:
44+
options:
4545
-h, --help show this help message and exit
46-
-v [V] Level of detail of the output. Valid options from less verbose to more verbose: -vquiet, -verror, -vwarning, -vnotice, -vstatus, -v or -vverbose, -vv or -vdebug,
47-
-vvv or -vtrace
46+
--out-file OUT_FILE Write the output of the command to the specified file instead of stdout.
47+
-v [{quiet,error,warning,notice,status,verbose,debug,v,trace,vv}]
48+
Level of detail of the output. Valid options from less verbose to more verbose: -vquiet, -verror, -vwarning, -vnotice, -vstatus, -v or -vverbose, -vv or -vdebug, -vvv or -vtrace
4849
-cc CORE_CONF, --core-conf CORE_CONF
4950
Define core configuration, overwriting global.conf values. E.g.: -cc core:non_interactive=True
5051
--project PROJECT Project key for the Build Info in Artifactory
@@ -54,8 +55,9 @@ optional arguments:
5455
--password PASSWORD Password for the Artifactory server.
5556
--token TOKEN Token for the Artifactory server.
5657
--build-info BUILD_INFO
57-
Name and number for the Build Info already published in Artifactory. You can add multiple Builds like --build-info=build_name,build_number --build-
58-
info=build_name,build_number
58+
Name and number for the Build Info already published in Artifactory. You can add multiple Builds like --build-info=build_name,build_number --build-info=build_name,build_number
59+
--build-info-file BUILD_INFO_FILE
60+
Path to the build-info file in your local folder. You can add multiple build-info files like --build-info=bi-1.json --build-info=bi-2.json
5961
```
6062

6163
### ``conan art:build-info create``

0 commit comments

Comments
 (0)