You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/CLI-for-JFrog-Artifactory.md
+9Lines changed: 9 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -893,6 +893,7 @@ By default, the command collects the files from the local file system. If you'd
893
893
| --recursive | \[Default: true\]<br><br>When false, artifacts inside sub-folders in Artifactory will not be affected. |
894
894
| --regexp | \[Optional: false\]<br><br>\[Default: false\] Set to true to use a regular expression instead of wildcards expression to collect files to be added to the build info.This option is not supported when --from-rt is set to true. |
895
895
| --dry-run | \[Default: false\]<br><br>Set to true to only get a summery of the dependencies that will be added to the build info. |
896
+
| --module | \[Optional\]<br><br>Optional module name in the build-info for adding the dependency. |
896
897
| --exclusions | A list of Semicolon-separated exclude patterns. Allows using wildcards or a regular expression according to the value of the 'regexp' option. |
897
898
| Command arguments | The command takes three arguments. |
898
899
| Build name | The build name to add the dependencies to |
@@ -916,6 +917,14 @@ Add all files located in the **m-local-repo** Artifactory repository, under the
916
917
jf rt bad my-build-name 7 "my-local-repo/dependencies/" --from-rt
917
918
```
918
919
920
+
921
+
**Example 3**
922
+
923
+
Add all files located under the **path/to/build/dependencies/dir** directory as dependencies of a build. The build name is **my-build-name**, the build number is **7** and module is m1. The build-info is only updated locally. To publish the build-info to Artifactory use the **jf rt build-publish** command.
924
+
```
925
+
jf rt bad my-build-name 7 "path/to/build/dependencies/dir/" --module m1
926
+
```
927
+
919
928
### Publishing Build-Info
920
929
921
930
This command is used to publish build info to Artifactory. To publish the accumulated build-info for a build to Artifactory, use the **build-publish** command. For example, the following command publishes all the build-info collected for build **my-build-name** with build number 18:
0 commit comments