0

Problem 1 : My requirement here is deploying the artifacts which are created during a build should be uploaded to a JFROG repository with a custom folder structure.

Eg. For a Jenkins build number 1, the folder should be named '1' and inside that, all the artifacts of that build should be stored and for build number 2, all artifacts of that build should be stored under the folder named '2'.

Problem 2: Here Iam having a number of parallel and sequential jobs, So, the artifacts created for one job would be required for another job ,Hence that also need to be pulled from the respective custom folder which we created above.

Eg. Job 2 need artifacts of job 1 to get the build successful.

Build is done using Jenkins pipeline script.

4

1 回答 1

0

我们可以使用自定义布局根据所需的布局将工件上传到 Artifactory 存储库。对于标准存储库类型,我们需要使用内置的标准布局,这样即使在将工件解析为来自客户端的依赖项(mvn、gradle 等)时也不会出现任何问题。但是,如果您使用自定义布局,则将根据您的要求创建文件夹,然后在将工件解析为来自客户端(mvn、gradle 等)的依赖项时,您可能会遇到问题。以下是 Artifactory 存储库布局 wiki 页面以获取更多详细信息:

https://www.jfrog.com/confluence/display/JFROG/Repository+Layouts

于 2022-02-22T18:46:34.870 回答