从jenkins部署后,缺少一个工件

时间:2018-11-07 19:25:21

标签: jenkins artifactory

我的jenkins工作产生了125个.deb软件包,我将它们在一个仓库中发布到了三种不同的路径:

def artifactory = Artifactory.server('artifactory.riftio.com')

uploadSpec = """{
            "files" : [
                {
                    "pattern" : "core/mano/src/core_mano-build/*.deb",
                    "target" : "debian-local-debug/pool/main/",
                    "props" : "deb.distribution=xenial;deb.component=main;deb.architecture=amd64"
                },
                {
                    "pattern" : "core/enablement/src/core_enablement-build/*.deb",
                    "target" : "debian-local-debug/pool/proprietary/",
                    "props" : "deb.distribution=xenial;deb.component=main;deb.architecture=amd64"
                },
                {
                    "pattern" : "ext/vnfs/src/ext_vnfs-build/*.deb",
                    "target" : "debian-local-debug/pool/vnfs/",
                    "props" : "deb.distribution=xenial;deb.component=main;deb.architecture=amd64"
                },
                {
                    "pattern" : "toolchain/src/toolchain-build/*.deb",
                    "target" : "debian-local-debug/pool/main/",
                    "props" : "deb.distribution=xenial;deb.component=main;deb.architecture=amd64"
                }
            ]
}"""
buildInfo = artifactory.upload(uploadSpec)
buildInfo.retention maxBuilds: 20, deleteBuildArtifacts: true
artifactory.publishBuildInfo(buildInfo)

有时,一个软件包无法显示在索引中,并且无法下载。我可以从构建视图中看到它,但是从回购视图中看不到它,并且搜索找不到它。

我在人工日志中看到此错误(有几行上下文):

2018-11-09 16:23:23,688 [ajp-nio-8019-exec-1367] [INFO ] (o.a.e.UploadServiceImpl:376) - Deploy to 'debian-local-debug:pool/vnfs/rw.ext.vnfs-6.2.0.2.96097-Linux-tg_vrouter_ts_nsd-1.0.deb' Content-Length: 0
2018-11-09 16:23:23,690 [ajp-nio-8019-exec-1369] [INFO ] (o.a.e.UploadServiceImpl:376) - Deploy to 'debian-local-debug:pool/vnfs/rw.ext.vnfs-6.2.0.2.96097-Linux-tg_bigip_ts_nsd-1.0.deb' Content-Length: 5710
2018-11-09 16:23:23,740 [ajp-nio-8019-exec-1382] [INFO ] (o.a.e.UploadServiceImpl:376) - Deploy to 'debian-local-debug:pool/vnfs/rw.ext.vnfs-6.2.0.2.96097-Linux-tg_vrouter_ts_nsd-1.0.deb' Content-Length: 18884
2018-11-09 16:23:23,760 [art-exec-207331] [INFO ] (o.a.a.d.DebianServiceImpl:194) - Finished calculation of Debian metadata for distribution 'xenial' in repo 'debian-local-debug'. took 1121 ms
2018-11-09 16:23:23,760 [art-exec-207331] [INFO ] (o.a.a.d.DebianServiceImpl:191) - Starting calculation of Debian metadata for distribution 'xenial' in repo 'debian-local-debug'.
2018-11-09 16:23:23,762 [art-exec-207331] [INFO ] (o.j.r.d.i.a.DebianIncrementalAutomaticRepoIndexer:85) - Indexing all required packages of distribution xenial on repo debian-local-debug
2018-11-09 16:23:23,763 [art-exec-207331] [WARN ] (o.j.r.d.e.DpkgMetadataExtractor:206) - Can't read Artifact at path pool/vnfs/rw.ext.vnfs-6.2.0.2.96097-Linux-tg_vrouter_ts_nsd-1.0.deb --> Failed to retrieve resource debian-local-debug:pool/vnfs/rw.ext.vnfs-6.2.0.2.96097-Linux-tg_vrouter_ts_nsd-1.0.deb: Could not get resource stream. Path 'pool/vnfs/rw.ext.vnfs-6.2.0.2.96097-Linux-tg_vrouter_ts_nsd-1.0.deb' not found in debian-local-debug

一个文件的两个记录,第一个记录的内容长度为0,第二个记录的内容长度正确,这对我来说似乎是个问题。上载完成之前,索引器正在运行。这看起来像个错误,但是由于不一致,因此很难确定。

有什么建议吗?我正在考虑将其分为3个上传,但是当我推广它时,它会对下游产生影响。我还缩短了uploadSpec ..真正的文件有18个部分,而不仅仅是4个部分。我应该在3个目录中预先收集文件以缩短规格吗?

0 个答案:

没有答案