简体   繁体   English

Jenkins存档下游多分支管道

[英]Jenkins Archive Downstream Multibranch Pipeline

I have a multibranch pipeline in Jenkins and need to pass the archive from the pipeline to a job it builds. 我在詹金斯(Jenkins)中有一个多分支管道,需要将存档从管道传递到它构建的工作中。 The copy artifact plugin doesnt seem to support multibranch pipelines. 复制工件插件似乎并不支持多分支管道。 It deletes my source project every time I save. 每次保存时,它都会删除我的源项目。 Is there another plugin I can use to get the archive to get passed to the job? 是否有另一个我可以用来获取存档文件以传递到工作的插件? Or is there something I need to do to get this plugin working with multibranch pipeline? 还是我需要做些什么才能使该插件与多分支管道一起使用?

The copy artifact plugin doesnt seem to support multibranch pipelines. 复制工件插件似乎并不支持多分支管道。

Copy Artifact does not care about multibranch. Copy Artifact不在乎多分支。 From its perspective, a branch project is simply a job that is in some folder. 从它的角度来看,分支项目只是位于某个文件夹中的一项工作。 And it does support folders. 而且它确实支持文件夹。 You just need to use the correct syntax for the source job. 您只需要对源作业使用正确的语法。 Last I remember, it supports either relative (eg, ../multibranch/master ) or absolute (eg, /organization/repo/master ). 最后我记得,它支持相对(例如../multibranch/master )或绝对(例如/organization/repo/master )。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM