Working with jenkins credentials

杀马特。学长 韩版系。学妹 提交于 2020-01-02 00:49:24

问题


I want to know how to Create the credentials that can be used by Jenkins and by jobs running in Jenkins to connect to 3rd party services.


回答1:


You should specify which 3rd party service you will work on. Below is an example of credentials with bitbucket

I am now working with Jenkins ver. 1.568. By default, there's Credentials feature. So, if you want to add a credential, just click on Add Credentials. For example, I'd like to add SSH Username with password, so I can use it in checking out code from bitbucket




回答2:


Credentials plugin - provides a centralized way to define credentials that can be used by your Jenkins instance, plugins and build jobs.

Credentials Binding plugin - allows you to configure your build jobs to inject credentials as environment variables.

The third party plugins need to be installed in your Jenkins instance. For example, Assembla Auth Plugin allows you to authenticate to an Assembla repository.

Which 3rd party services are you working with?




回答3:


Instead of using SSH Username with private key you can simply use username with password option



来源:https://stackoverflow.com/questions/27400051/working-with-jenkins-credentials

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!