hudson git https password, how do I specify it?

前端 未结 2 1052
名媛妹妹
名媛妹妹 2021-01-11 13:01

When using the hudson git plugin with https, how to I specify a password?

2条回答
  •  野趣味
    野趣味 (楼主)
    2021-01-11 13:36

    The status as of this writing is that you can.

    There are at least two ways of doing it:

    1. specifying it in the url (https://user:pass@yourdomain.com/yourrepo)
    2. specifying it in .netrc file for the user env that is running the Hudson build (_netrc on windows)

    netrc approach is by default a plain text file. If needed, it can be encrypted as explained in this answer, or just be readable for that one user through permissions.

提交回复
热议问题