Closed rpguidewire closed 10 years ago
A few questions...
yes i saw it in at least 2 repositories. Jenkins ver. 1.530 Git Plugin: 2.0.3
Try running this command and see if you get the same error back.
curl http://yourserver/jenkins/git/notifyCommit?url=<SSH/HTTP Clone URL>
(none)
the above is return i get with that command
Hmm... can you paste the exact command you used? Feel free to remove the hostname. You shouldn't at least be getting a 404 back.
Assuming that you have the hostnames correct, you shouldn't be getting a 404 from Jenkins. Are you sure the Git plugin is enabled in Jenkins? Even if the repo url (the parameter part) wasn't correct, you'd get back a page saying "No git jobs using repository: [your repository provided in the url]".
i tried the username and password too curl -u still same error. can you suggest some other way to debug ?
The reason I was asking you to do that is because that's all that this plugin does. It simply makes a request to the endpoint that the Git Plugin makes available, providing the repo URL you had configured. The problem, based on your original exception, is a problem with the Git Plugin in Jenkins, not with this Stash webhook plugin.
I wanted to see if we could duplicate it again, outside of Stash, to help prove that before we send it off to the Git Plugin issue tracker. You can try the URL using a web browser as well. But, you'll need to figure out the URL endpoint before I can really help out too much more. A link to their documentation is found below:
https://wiki.jenkins-ci.org/display/JENKINS/Git+Plugin#GitPlugin-Pushnotificationfromrepository
I'm going to go ahead and close this issue, as it's not an issue with this plugin. But, I'd still be happy to help you resolve your issue. Please feel free to continue to continue the discussion with the issue closed.
https://answers.atlassian.com/questions/270266/new-version-of-jenkins-webhook-for-stash-giving-error-with-stash-2-9?page=1#270282