3

I am trying to create a new job. When I select git and enter my repository URL, I get the error:

HTTP ERROR 403 Problem accessing /job/hello%20world/descriptorByName/hudson.plugins.git.UserRemoteConfig/checkUrl. Reason: No valid crumb was included in the request

I am getting an error in Visual Studio 2013 source control. Any idea on what is happening and how to solve the problem?

alex
  • 6,818
  • 9
  • 52
  • 103
kogibail
  • 125
  • 1
  • 2
  • 10
  • Possible duplicate of [Jenkins REST API Create job](https://stackoverflow.com/questions/38137760/jenkins-rest-api-create-job) – SV Madhava Reddy Mar 26 '18 at 07:43
  • Have a look at this. [http://www.technowise.in/2016/10/fix-no-valid-crumb-was-included-in.html](http://www.technowise.in/2016/10/fix-no-valid-crumb-was-included-in.html) – SV Madhava Reddy Mar 26 '18 at 07:45
  • I think the problem may be in my git repo because I get error when I try to commit changes in vs 2013 – kogibail Mar 26 '18 at 14:28
  • using vs 2017 I get this error when trying to sync :opening repositories: c:\users\user\Source\Repos\***** Error encountered while pushing branch to the remote repository: Git failed with a fatal error. HttpRequestException encountered. An error occurred while sending the request. cannot spawn askpass: No such file or directory could not read Username for 'https://github.com': terminal prompts disabled Pushing to https://github.com/****/hello-world.git – kogibail Mar 26 '18 at 14:41

1 Answers1

1

This comes from JENKINS/CSRF+Protection.

Check as in here that it is activated.
I would not recommend to desactivate it as show here.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250