jenkins 使用 github Personal Acces

2021-10-14  本文已影响0人  RookieSnail

方式一:

参考地址:https://stackoverflow.com/questions/61105368/how-to-use-github-personal-access-token-in-jenkins

https://<access token>@github.com/<userName>/<repository>.git
eg:https://ghp123_VdfyhOxwjtk8hw232AAFCniDQwl6akOZ1vmAlw@github.com/demo/demo.git

jenkis配置方式

image.png

方式二:

使用原来的用户名和密码,把密码换成access token
参考地址:https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token

jenkis配置方式

image.png
上一篇 下一篇

猜你喜欢

热点阅读