Jenkins Git plugin with https

后端 未结 11 2229
Happy的楠姐
Happy的楠姐 2020-12-30 05:20

I am trying to configure a Git project in Jenkins using the Git plugin. In the project configuration page I enter the repository URL in the Git configuration, which is an ht

11条回答
  •  情歌与酒
    2020-12-30 05:58

    This is a bug in the Jenkins Git Plugin.

    You can workaround the credential issue by creating credentials using the credential plugin and then use these credentials in the SCM/Git section of your Job. However, this will expose your user/password in plaintext in the build log if the checkout fails.

    Also, this will not work if you are using a HTTP proxy with git. The best way (for now) is to use JGit (to be configured in the Jenkins configuration). However, JGit is experimental and very limited as well when it comes to proxies.

    (answer posted due to popular request ;) )

提交回复
热议问题