简体   繁体   English

从另一个Jenkins版本中找到工件URL

[英]Find artifactory URL from another Jenkins build

I have a Jenkins job that build and upload an .ear to Artifactory. 我有一个詹金斯(Jenkins)工作,负责建立.ear并将其上传到Artifactory。 I'm creating another Jenkins job that will deploy this application on a few servers using ansible. 我正在创建另一个Jenkins作业,它将使用ansible将此应用程序部署在一些服务器上。 How can I make it find the most recent build and get the artifactory URL for the ear file that was built? 如何使其找到最新的构建并获取所构建的耳文件的人工URL?

Since you are using jenkins you can use the process of upstream -> downstream or pipeline based process for the deployment of the .ear files. 由于您正在使用jenkins,因此可以使用上游->下游或基于管道的过程来部署.ear文件。

Artifactory url consists of two parts one fixed and another variable. Artifactory网址由两个部分组成,一个是固定的,另一个是变量。

For eg 例如

fixed --> https://artifact.domain.com:8081/artifactory variable -- repo_name https://artifact.domain.com:8081/artifactory/ $repo_name/ 固定-> https://artifact.domain.com:8081/artifactory变量-repo_name https://artifact.domain.com:8081/artifactory/ $ repo_name /

For getting the lastest build number you can also use the artifactory api key value RELEASED 为了获得最新的内部版本号,您还可以使用人工的api键值RELEASED

Artifactory REST Api Artifactory REST Api

You can also use jenkins plugin of artifactory for dependencies download to download the .ear file if the app is simple 如果应用程序很简单,您还可以使用人工制品的jenkins插件进行依赖项下载,以下载.ear文件。

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

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