简体   繁体   English

Jenkins Nexus使用Maven上传不同的存储库

[英]Jenkins Nexus Upload different Repositories with Maven

within Jenkins I use the Plugin for Nexus-Artifact Uploader to load our maven deployed results into nexus. 在Jenkins中,我使用Nexus-Artifact Uploader插件将我们的Maven部署结果加载到联系中。

Not unusual we have different Repositories (Snapshot and Release) in Nexus. 在Nexus中,我们有不同的存储库(快照和发行版),这并不稀奇。

What I like is to determine in Jenkins in which Repository the deployed artefact should be uploaded. 我喜欢在Jenkins中确定应在哪个存储库中上传已部署的人工制品。 In Jenkins I can configure Parameter for that, but the plugin does not support any of these parameter. 在Jenkins中,我可以为此配置Parameter,但是插件不支持任何这些参数。

Is the most common way to implement this within the pom.xml or has anybody solved this in the way I try to ? 是在pom.xml内实现此功能的最常见方法,还是有人尝试用我的方法解决了此问题?

Thanks in advance! 提前致谢!

Nexus-Artifact-Uploader plugin accepts input parameters and environment variables as inputs. Nexus-Artifact-Uploader插件接受输入参数和环境变量作为输入。

You can create a parameter for ex: RepoType and you can pass value as $RepoType to the repository input field. 您可以为ex:RepoType创建一个参数,并将$ RepoType的值传递到存储库输入字段。

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

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