|
| 1 | +package publish |
| 2 | + |
| 3 | +func GetDescription() string { |
| 4 | + return "Publish an APM package to JFrog Artifactory." |
| 5 | +} |
| 6 | + |
| 7 | +func GetAIDescription() string { |
| 8 | + return `Publish an agent package to a JFrog Artifactory agentpackages repository with authenticated access. |
| 9 | +
|
| 10 | +When to use: |
| 11 | +- Publishing custom agent packages for installation across multiple projects. |
| 12 | +- Packaging skills, tools, or other agent extensions for organizational use. |
| 13 | +- Creating reproducible, versioned deployments of agent components. |
| 14 | +
|
| 15 | +Prerequisites: |
| 16 | +- apm CLI (>= 0.1.0) installed and in PATH. |
| 17 | +- An apm.yml file in the package directory (or parent directories). |
| 18 | +- Write permission on the Artifactory agentpackages repository. |
| 19 | +- Registry configured via jf setup agent-apm or apm.yml's registries: block. |
| 20 | +
|
| 21 | +Common patterns: |
| 22 | + $ jf agent apm publish my-org/my-package |
| 23 | + $ jf agent apm publish my-org/my-package --build-name=my-build --build-number=1 |
| 24 | + $ jf agent apm publish my-org/my-package --build-name=my-build --build-number=1 --module=my-module |
| 25 | +
|
| 26 | +Package format: |
| 27 | +- Directory with apm.yml declaring name, version, and description. |
| 28 | +- Optional skills/ subdirectory containing Cursor Agent Skills. |
| 29 | +- Version in apm.yml becomes the published package version. |
| 30 | +
|
| 31 | +Build info: |
| 32 | +- Enabled with --build-name and --build-number flags. |
| 33 | +- Captures package metadata and publishing source. |
| 34 | +- Published to Artifactory for traceability and compliance. |
| 35 | +- Optional --module to group multiple packages in the same build. |
| 36 | +
|
| 37 | +Environment: |
| 38 | +- Credentials injected via APM_REGISTRY_TOKEN_<NAME>, APM_REGISTRY_USER_<NAME>, APM_REGISTRY_PASS_<NAME>. |
| 39 | +- Registry configuration sourced from ~/.apm/config.json (set by jf setup agent-apm). |
| 40 | +
|
| 41 | +Related: jf agent apm install, jf agent apm update, jf setup agent-apm` |
| 42 | +} |
0 commit comments