• Register
0 votes
674 views

Problem :

This is the very first time that I am using Jenkins and I have gone through the several articles but unable to find any satisfactory answers. We have the .Net project, and we are using our private GitHub repository. Now I want to build CI server with Jenkins.

By default my Jenkins runs on the port 8080. But for the continuous integration to work the Jenkins must receive the notification from GitHub. Our port 8080 is by default blocked from the outside world, and on CI server port 80 is open. So I updated httpport in Jenkins.xml file so now Jenkins is running on port 80.

On the Jenkins’s System Configuration page I can only see the “Git” and “GitHub Plugin Configuration”. I do not see the “GitHub Web Hook” option, and also I can not see the “Let Jenkins auto-manage hook URLs” has this changed in the version 1.646

But I see below error in Jenkins log

Failed to remove hook from GitHubRepositoryName[host=github.com,username=MyCompanyName,repository=reponame] java.lang.NullPointerException: There is no credentials with admin access to manage hooks on GitHubRepositoryName[host=github.com,username=MyCompanyName,repository=reponame] at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:342)

6 5 3
7,540 points

1 Answer

0 votes

Solution :

Please follow below solution to resolve your issue:

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

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

9 7 4
38,600 points

Related questions

0 votes
1 answer 32 views
32 views
Problem : Currently I am trying to use TortoiseGit on Windows. But when I want to Clone from a context menu of my standard Windows Explorer, I face below error: Please make sure you have the correct access rights and the repository exists How can I make my git work properly?
asked Jan 10 alecxe 7.5k points
0 votes
1 answer 41 views
41 views
Problem : I am trying to use the TortoiseGit on my Windows. But when I want to Clone it from my context menu of the standard Windows Explorer then I face below error: Please make sure you have the correct access rights and the repository exists In more detail the complete snapshot of ... exit cleanly (exit code 128) (21450 ms @ 17.12.2019 10:36:58) What should I do to make my git work correctly ?
asked Dec 19, 2019 alecxe 7.5k points
0 votes
1 answer 1.5K views
1.5K views
Problem : I have the below problem when I just try to pull code, using my GIT Bash on windows Even after adding/removing the origin I am still facing the same error as below. Fatal: could not read Username for 'https://github.com': No such file or directory
asked Dec 19, 2019 alecxe 7.5k points
0 votes
1 answer 512 views
512 views
Problem : I am working on the project remotely through the command line on the machine to which I don't have the admin rights and after running git push origin master I get the below error message: (gnome-ssh-askpass:29241): Gtk-WARNING **: cannot open ... to host github.com port 22: Connection timed out fatal: The remote end hung up unexpectedly Does anyone have any solution for my issues?
asked Dec 11, 2019 alecxe 7.5k points