我已经在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] 删除。
我来说两句