自动部署到 Artifactory Distribution Repo

Automating deployments to Artifactory Distribution Repo

我想知道如何将工件部署到 Artifactory's Distribution repo。 从 gradle 直接推送到分发仓库(使用 gradle-maven 插件)会导致以下错误:

FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':artifactoryDeploy'.
> java.io.IOException: Failed to deploy file. Status code: 404 Response message: Artifactory returned the following errors: 
  Could not find a local repository named my-distribution-repo to deploy to. Status code: 404

似乎我无法推送到不是本地回购的回购。有什么想法吗?

您可以推送到本地存储库,然后然后将构建分发到分发存储库。

例如,使用 JFrog CLI 您可以分 3-4 步分发:

  1. Building 一个 Gradle 项目。
  2. Publishing 构建信息。
  3. Promoting 构建(可选)。
  4. Distributing 构建。