[英]Jenkins maven release credentials
I'm currently using cloudbees with bitbucket. 我目前正在将Cloudbees与Bitbucket结合使用。
I've been trying to configure the release of the maven projects. 我一直在尝试配置Maven项目的发行版。 To perform the release I'm using the
Maven Release Plug-in Plug-in
. 要执行发布,我使用了
Maven Release Plug-in Plug-in
。
The test project that I'm trying to release is able to update from the mercurial repository, change and tag the versions and it tries to upload the released artifact to the private cloudbees release repository. 我要发布的测试项目能够从Mercurial存储库中进行更新,更改和标记版本,并尝试将已发布的工件上传到私有cloudbees版本存储库。 The problem I'm facing is that it is not able to authenticate against this repository.
我面临的问题是它无法针对此存储库进行身份验证。 From what I understand, I have to add to the settings.xml the credentials for the repository.
据我了解,我必须将存储库的凭证添加到settings.xml中。 And this rises some doubts:
这引起了一些怀疑:
Which repo are you talking about? 您在说哪个回购协议? The Maven one where you push the artifact or the BitBucket one where you push a new tag and update the version number of the current branch?
Maven是您推送工件的地方,还是BitBucket是您推送新标签并更新当前分支的版本号的地方? You will need both.
您将同时需要两者。
Adding the Cloudbees credentials in the settings.xml in your private folder is fine. 在您的私有文件夹的settings.xml中添加Cloudbees凭据很好。 This is the same you are setting in your local Maven repo (
~/.m2/settings.xml
) to fetch from Cloudbee's Maven repo. 这与您在本地Maven存储库(
~/.m2/settings.xml
)中~/.m2/settings.xml
以从Cloudbee的Maven存储库获取相同。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.