[英]How to upload .net core build artifacts into JFrog Artifactory Cloud
我已經在 Azure DevOps 中為 .net 核心應用程序配置了構建管道。 因為我添加了Artifactory Generic Upload構建任務以將構建工件上傳到 JFrog Artifactory 而不是保留在 Azure DevOps Server 中。
在 Artifactory 通用上傳任務中,我正在使用此文件規范配置。
{
"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/"
}
]
}
使用此文件規范配置,我能夠將 .NET 核心構建工件上傳到 JFrog Artifactory。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.