Jenkins-jenkins凭证管理与代码拉取

什么是凭证?

Jenkins经常与第三方插件如git,docker等交互,需要提供第三方的凭证,比如access token,用户名和密码等
可以使用插件Credentials Binding Plugin来管理这些凭证

jenkins凭证类型

jenkins可以管理以下凭证
Secret text -------- a token such as an API token (e.g. a GitHub personal access token),
Username and password -------- which could be handled as separate components or as a colon separated string in the format username:password (read more about this in Handling credentials),git使用https方式拉取代码时可以使用用户名和密码这种凭证
Secret file --------- which is essentially secret content in a file,
SSH Username with private key -------- an SSH public/private key pair,
Certificate - --------a PKCS#12 certificate file and optional password, or
Docker Host Certificate Authentication credentials.

下面以gitee为例来说明,jenkins如何使用凭证和第三方插件交互

环境准备

(1)Linux安装git
yum -y install gi

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值