方式一:
参考地址: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
网友评论