上传的项目图片:“Jenkins Artifactory插件”
  1. Jenkins Artifactory插件
  2. hap - 1286

使用插件v3.5.0的Build和Pattern下载带有FileSpec的工件时出现异常

    XML 可打印的

    细节

    • 类型: 错误
    • 状态: Resolved
      A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.">解决
    • 解决方法: 完成
    • 影响版本/ s: 3.5.0
    • 修复版本/ s: 没有一个
    • 组件/ s: 没有一个
    • 环境:

      詹金斯:v2.204.1

      Artifactory: v5.11.6

      Jenkins Artifactory插件:v3.5.0

      实现:Jenkins脚本化管道

    • 回归:
      是的

      描述

      在升级到Jenkins的Artifactory Plugin的v3.5.0之后,我们的管道作业在尝试从通用存储库下载工件时抛出了一个异常模式构建填充字段。

      回购协议:

      “发布”和“调试”文件作为一个构建上传:

      • / ..../ devCentaurus / <建立数> > /释放/ <工件
      • / ..../ devCentaurus / <建立数> > /调试/ <工件

      文件规范:

      注意:必须在“图案”中使用而不是实际的星号字符,因为它一直将图案变成表情符号然后创建一些文本大胆的
      {
      “文件”:[
      {

      “模式”:“generic-dcar-devices-all /值得信赖/半人马座/ <星> <明星> / devCentaurus / <明星> / <明星> / <明星>

      "build": "DCAR:: Centaurus:: App:: MACVU360:: Linux-IMX6-Dev:: devCentaurus/LATEST",

      “目标”:“下载/开发/{1}/”,

      “平”:“真正的”

      }
      ]
      }

      下载时出现异常:

      hudson.remoting。通道$CallSiteStackTrace:远程调用EC2 (AWS) - Linux (i-0d2efae23c28bd4f7)
      hudson.remoting.Channel.attachCallSiteStackTrace (Channel.java: 1741)
      hudson.remoting.UserRequest ExceptionResponse.retrieve美元(UserRequest.java: 356)
      hudson.remoting.Channel.call (Channel.java: 955)
      hudson.FilePath.act (FilePath.java: 1069)
      hudson.FilePath.act (FilePath.java: 1058)
      在org.jfrog.hudson.pipeline.common.executors.GenericDownloadExecutor.execute (GenericDownloadExecutor.java: 49)
      org.jfrog.hudson.pipeline.scripted.steps.DownloadStep Execution.run美元(DownloadStep.java: 73)
      org.jfrog.hudson.pipeline.scripted.steps.DownloadStep Execution.run美元(DownloadStep.java: 52)
      在org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution 1美元1.美元调用(AbstractSynchronousNonBlockingStepExecution.java: 47)
      hudson.security.ACL.impersonate (ACL.java: 290)
      在org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution 1.美元运行(AbstractSynchronousNonBlockingStepExecution.java: 44)
      java.util.concurrent.Executors RunnableAdapter.call美元(Executors.java: 511)
      java.io.IOException: Failed to search artifact by aql 'items.find({"artifact.module.build.name": "DCAR:: Centaurus:: App:: MACVU360:: Linux-IMX6-Dev:: devCentaurus","artifact.module.build. name"。number": "547"}).include("actual_sha1")': HTTP/1.1 400错误请求
      org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryDependenciesClient.getResponseStream (ArtifactoryDependenciesClient.java: 144)
      org.jfrog.build.extractor.clientConfiguration.client.ArtifactoryDependenciesClient.searchArtifactsByAql (ArtifactoryDependenciesClient.java: 120)
      org.jfrog.build.extractor.clientConfiguration.util.AqlHelperBase.fetchBuildArtifactsSha1 (AqlHelperBase.java: 246)
      org.jfrog.build.extractor.clientConfiguration.util.AqlHelperBase.filterResult (AqlHelperBase.java: 232)
      org.jfrog.build.extractor.clientConfiguration.util.AqlHelperBase.run (AqlHelperBase.java: 52)
      org.jfrog.build.extractor.clientConfiguration.util.ArtifactorySearcher.SearchByFileSpec (ArtifactorySearcher.java: 39)
      org.jfrog.build.extractor.clientConfiguration.util.DependenciesDownloaderHelper.downloadDependencies (DependenciesDownloaderHelper.java: 85)
      org.jfrog.build.extractor.clientConfiguration.util.spec.SpecsHelper.downloadArtifactsBySpec (SpecsHelper.java: 140)
      在org.jfrog.hudson.generic.FilesResolverCallable.invoke (FilesResolverCallable.java: 51)
      在org.jfrog.hudson.generic.FilesResolverCallable.invoke (FilesResolverCallable.java: 21)
      hudson.FilePath FileCallableWrapper.call美元(FilePath.java: 3069)
      hudson.remoting.UserRequest.perform (UserRequest.java: 211)
      hudson.remoting.UserRequest.perform (UserRequest.java: 54)
      在hudson.remoting.Request 2.美元运行(Request.java: 369)
      在hudson.remoting.InterceptingExecutorService 1.美元调用(InterceptingExecutorService.java: 72)
      java.util.concurrent.FutureTask.run (FutureTask.java: 266)
      java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java: 1149)
      java.util.concurrent.ThreadPoolExecutor Worker.run美元(ThreadPoolExecutor.java: 624)
      java.lang.Thread.run (Thread.java: 748)

      故障排除:

      • 我将模式简化为“generic-dcar-devices-snapshot/ELO/Centaurus/App/MACVU360/Linux-IMX6-Dev/devCentaurus//Release/”,同样例外。
      • 我保持一切不变,并将Artifactory插件还原到v3.4.0,然后构建成功。

        附件

          活动

            受让人:
            eyalbEyal Ben Moshe [X](非活跃)
            记者:
            Jerel。OlstadJerel Olstad(非活跃)
            投票:
            11 为这个问题投票
            观察人士:
            16 开始收看本期节目

              日期

              创建:
              更新:
              解决: