如何将.net核心构建工件上传到JFrog Artifactory Cloud

普拉迪普

我已经在Azure DevOps中为.net核心应用程序配置了构建管道。在此,我添加了Artifactory Generic Upload构建任务,以将构建工件上传到JFrog Artifactory,而不是保留在Azure DevOps Server中。

在Artifactory Generic Upload任务中,我正在使用此文件规范配置。

{
  "files": [
    {
      "pattern": "*.zip",
      "target": "generic-local" // This is my generic repository name in JFrog Artifactory Cloud
    }
  ]
}

每当我运行构建时,就会遇到以下错误。

> [Error] No errors, but also no files affected (fail-no-op flag).

{

  "status": "success",

  "totals": {

    "success": 0,

    "failure": 0

  }

}

##[debug]task result: Failed

##[error]Error: Command failed: C:\hostedtoolcache\windows\jfrog\1.38.4\x64\jfrog.exe rt u --url="https://xxxxx.jfrog.io/artifactory" --user=*** --password=*** --fail-no-op=true --dry-run=false --insecure-tls=false --threads=3 --retries=3 --symlinks=false

因此,有人可以建议我如何将.net核心构建工件上传到JFrog Artifactory Cloud中。

普拉迪普

我已如下更改文件规范:

{
  "files": [
    {
      "pattern": "$(Build.ArtifactStagingDirectory)/*.zip",
      "target": "generic-local/generic-local/drop/" // Format: "Repository_Name/Repository_Path/Folder_Name/"
    }
  ]
}

使用此File Spec配置,我可以将.NET Core构建工件上载到JFrog Artifactory。

参考文档:https : //www.jfrog.com/confluence/display/CLI/CLI+for+JFrog+Artifactory#CLIforJFrogArtifactory-UploadingFiles

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

如何将Artifactory用作Go模块的本地存储库

如何使用JFrog Artifactory将GitHub代理为Go Repository?

使用Gradle将工件上传到Artifactory

如何在Artifactory中的新工件上触发Jenkins构建?

如何将yum存储库完全导入Artifactory?

Artifactory REST API:如何找到工件的构建?

如何将Android .aar文件发布到Artifactory

如何设置Jenkinsfile将Maven工件上传到Artifactory

如何在Artifactory中下载最后的工件?

如何使用Jfrog CLI将工件上传到Jfrog Artifactory?

将Maven archetype-catalog.xml上传到远程工件存储库(Artifactory)

如何将JFrog Artifactory中的远程存储库连接到repo.manento.com?

如何将GPU附加到Google Cloud构建?

JFrog Artifactory Cloud配置远程存储库

如何使用JFrog CLI将构建和工件发布到Artifactory?

如何将Maven网站部署到Artifactory?

Artifactory删除先前构建的工件

从 Jfrog artifactory OSS 中清理旧工件

将 libgdx 核心发布到 artifactory

如何将 URL 文件部署到 artifactory

将工件上传到 JFrog Artifactory

如何将 Gradle 插件发布到 Artifactory?

无法访问在 Google Cloud 上作为 Docker 容器运行的 JFrog Artifactory

如何将文件上传到 Google Cloud Storage Bucket 子目录

如何使用 REST API 从 jfrog artifactory 中查找具有特定属性值的工件

如何在 Artifactory 中下载附加构建的所有工件?

无法将舵图推送到 jfrog artifactory

通过 jenkins 上传的 JFrog Artifactory 工件不会出现在构建中

如何将工件上传到现有版本?