From 29be5d5588daf02d6449bb7ed732ba82ee51d0ce Mon Sep 17 00:00:00 2001 From: sarao Date: Mon, 17 Jul 2023 13:05:55 +0300 Subject: [PATCH] add --module flag to jf rt bad --- documentation/CLI-for-JFrog-Artifactory.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/documentation/CLI-for-JFrog-Artifactory.md b/documentation/CLI-for-JFrog-Artifactory.md index 768f84669..55b076054 100644 --- a/documentation/CLI-for-JFrog-Artifactory.md +++ b/documentation/CLI-for-JFrog-Artifactory.md @@ -893,6 +893,7 @@ By default, the command collects the files from the local file system. If you'd | --recursive | \[Default: true\]

When false, artifacts inside sub-folders in Artifactory will not be affected. | | --regexp | \[Optional: false\]

\[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. | | --dry-run | \[Default: false\]

Set to true to only get a summery of the dependencies that will be added to the build info. | +| --module | \[Optional\]

Optional module name for the build-info. | | --exclusions | A list of Semicolon-separated exclude patterns. Allows using wildcards or a regular expression according to the value of the 'regexp' option. | | Command arguments | The command takes three arguments. | | 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 jf rt bad my-build-name 7 "my-local-repo/dependencies/" --from-rt ``` + +**Example 3** + +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. +``` +jf rt bad my-build-name 7 "path/to/build/dependencies/dir/" --module m1 +``` + ### Publishing Build-Info 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: