Jenkins configuration and security issues

后端 未结 2 523
死守一世寂寞
死守一世寂寞 2021-02-14 10:58

This is the first time I am using Jenkins and I have gone through several online articles but couldn’t find satisfactory answers. We have .Net project, and we are using private

相关标签:
2条回答
  • 2021-02-14 11:38

    1) Go to Configure global Security and uncheck "Allow users to sign up" to prevent creation of new accounts.

    2&3) Go to Configure System/Github Plugin Configuration section and uncheck "Manage hook" if you don't have admin access or don't want to manage hooks from Jenkins.

    0 讨论(0)
  • 2021-02-14 11:48

    I'll add a second answer for other like me who stumbled here but couldn't fix it with the steps above:

    1) Make sure to remove the trailling .git from your task SCM config

    2) Make sure that you have set an ip/domain in Jenkins that can be reached by Github, since this is what will be used to create the hooks in your repos. This might be set to loopback by default if you are running in a VM for example

    Results in this bad config in Github

    3) Restart Jenkins with http://your-jenkins-address:port/restart

    0 讨论(0)
提交回复
热议问题