简体   繁体   English

是否有工件的Jenkins构建参数?

[英]Is there a Jenkins build parameter for artifacts?

I would like to refer to the artifact URL in a deploy job I'm creating. 我想在我正在创建的部署作业中引用工件URL。 How can I do that? 我怎样才能做到这一点?

For example - when I select a build from the Build History I get to the build page. 例如 - 当我从Build History中选择一个构建时,我会进入构建页面。 If I right click on a build artifact, I can copy the link. 如果我右键单击构建工件,我可以复制链接。 The link looks something like: 该链接看起来像:

h_t_t_p://....../artifact/...../xyz.rpm

Can I refer to that using a build parameter or environment variable? 我可以使用构建参数或环境变量来引用它吗?

thanks. 谢谢。

如果您总是想部署最新版本的工件,那么可以使用永久链接:

http://jenkins-server/job/job-name/lastSuccessfulBuild/artifact/path/to/artifact

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

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