简体   繁体   English

使用jenkins将文件部署为Artifactory作为Maven artefact而不使用maven

[英]Deploying file with jenkins to Artifactory as Maven artefact without using maven

I'm using Jenkins version 1.532.1 and Artifactory version 3.1.0. 我正在使用Jenkins版本1.532.1和Artifactory版本3.1.0。

When you configure a job in jenkins ci, at the category "Build Environment" you can select "Generic-Artifactory Integration" and enter the path to a file you want to deploy to the Artifactory. 在jenkins ci中配置作业时,在“构建环境”类别中,可以选择“Generic-Artifactory Integration”并输入要部署到Artifactory的文件的路径。

But I want to have the file deployed as a Maven artifact with maven metadata and dependencies defiend in a pom.xml. 但我希望将文件部署为Maven工件,并在pom.xml中使用maven元数据和依赖项。 Is this possible with selecting the "Maven3-Artifactory Integration", defining Include Patterns and Deployment properties? 选择“Maven3-Artifactory Integration”,定义包含模式和部署属性是否可行?

Yes, for Maven artifacts you should use the "Maven3-Artifactory Integration" and not the "Generic-Artifactory Integration", as described in the documentation . 是的,对于Maven工件,您应该使用“Maven3-Artifactory Integration”而不是“Generic-Artifactory Integration”,如文档中所述

Please note that although it's possible to use with generic build, we strongly suggest using Maven3 build for that. 请注意,尽管可以使用通用版本,但我们强烈建议您使用Maven3版本。

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

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