Skip to content

Commit

Permalink
Added Nuget example cli-for-jfrog-artifactory.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan770 authored Dec 25, 2023
1 parent 2982dab commit 5b3b7f4
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions jfrog-applications/jfrog-cli/cli-for-jfrog-artifactory.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <PACKAGE_NAME> --module my-module-name --build-name=my-build-name --build-number=1
jf rt dotnet build <PACKAGE_NAME> --module my-module-name --build-name=my-build-name --build-number=1
jf rt u example.1.0.0.nupkg <LOCAL_REPOSITORY_NAME> --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

Expand Down

0 comments on commit 5b3b7f4

Please sign in to comment.