From 5b3b7f4a1980624bced1fd4801ce41500ed55fbd Mon Sep 17 00:00:00 2001 From: Nathan Amiel <59163863+Nathan770@users.noreply.github.com> Date: Mon, 25 Dec 2023 11:36:02 +0200 Subject: [PATCH 1/2] Added Nuget example cli-for-jfrog-artifactory.md --- .../jfrog-cli/cli-for-jfrog-artifactory.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/jfrog-applications/jfrog-cli/cli-for-jfrog-artifactory.md b/jfrog-applications/jfrog-cli/cli-for-jfrog-artifactory.md index e3bd7e7..5f51065 100644 --- a/jfrog-applications/jfrog-cli/cli-for-jfrog-artifactory.md +++ b/jfrog-applications/jfrog-cli/cli-for-jfrog-artifactory.md @@ -2094,6 +2094,18 @@ jf dotnet restore --build-name=my-build-name --build-number=1 In addition, record the build-info as part of build **my-build-name/1**. The build-info can later be published to Artifactory using the [build-publish](https://docs.jfrog-applications.jfrog.io/jfrog-applications/jfrog-cli/cli-for-jfrog-artifactory#publishing-build-info) command. +##### Example 4 + +To incorporate both the artifact and its dependency within a module in a build, utilize the --module flag with the following commands: + +``` +jf rt dotnet restore --module my-module-name --build-name=my-build-name --build-number=1 +jf rt dotnet build --module my-module-name --build-name=my-build-name --build-number=1 +jf rt u example.1.0.0.nupkg --module my-module-name --build-name=my-build-name --build-number=1 + +jf rt bp --build-name=my-build-name --build-number=1 +``` +Keep in mind that the resulting build will be published under a single module, and it's important to note that the module type will be generic. ### Packaging and Publishing Terraform Modules From 3acc7af0aa48e5b2d33221f95e94f643b91546ee Mon Sep 17 00:00:00 2001 From: Nathan Amiel <59163863+Nathan770@users.noreply.github.com> Date: Tue, 2 Jan 2024 10:56:29 +0200 Subject: [PATCH 2/2] Update cli-for-jfrog-artifactory.md --- jfrog-applications/jfrog-cli/cli-for-jfrog-artifactory.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/jfrog-applications/jfrog-cli/cli-for-jfrog-artifactory.md b/jfrog-applications/jfrog-cli/cli-for-jfrog-artifactory.md index 5f51065..8eb2eb1 100644 --- a/jfrog-applications/jfrog-cli/cli-for-jfrog-artifactory.md +++ b/jfrog-applications/jfrog-cli/cli-for-jfrog-artifactory.md @@ -2096,10 +2096,9 @@ In addition, record the build-info as part of build **my-build-name/1**. The bui ##### Example 4 -To incorporate both the artifact and its dependency within a module in a build, utilize the --module flag with the following commands: +To incorporate both the build artifacts and the dependencies within the same module in the published build-info, utilize the --module option with the following commands: ``` -jf rt dotnet restore --module my-module-name --build-name=my-build-name --build-number=1 jf rt dotnet build --module my-module-name --build-name=my-build-name --build-number=1 jf rt u example.1.0.0.nupkg --module my-module-name --build-name=my-build-name --build-number=1