-
Bug
-
Resolution: Cannot Reproduce
-
Blocker
-
Production
Jenkins Version: 2.426.2
Hi Team,
We are facing issue with Azure Devops Service Hook Trigger Git Build when we are pushing the changes the Jenkins build is not starting, we are getting HTTP 500 server error.
Please find the below response & request for the same.
Request:
Method: GET
URI: https://<Jenkins URL>/git/notifyCommit?url=https:%2F%2Ffabrikam-fiber-inc.visualstudio.com%2FDefaultCollection%2F_git%2FFabrikam-Fiber-Git&sha1=fnrfnifniedidbedediqeodxjqosjiew&branches=master
HTTP Version: 1.1
Headers:
Response:
Status Code: 500
Reason Phrase: Server Error
HTTP Version: 1.1
Headers:
We have also checked the Jenkins Master logs and we see below error in the logs.
2024-01-04 07:28:42.536+0000 [id=288646465] WARNING h.i.i.InstallUncaughtExceptionHandler#handleException: Caught unhandled exception with ID firnfirn-c4jrnb1-4vrve11-avesef352-13vr445893b10bc
java.lang.NullPointerException: Cannot invoke "hudson.scm.SCM.getKey()" because "scm" is null
Can someone please help us to resolve this issue.
I am unable to duplicate the issue based on your description. You'll need to provide more details, including the specific plugin versions you are using and a sample configuration that others can use to duplicate the issue. The log entries containing the unhandled exception may also be helpful in the diagnosis, since they will likely have a stack trace for the null pointer exception.
The sample command that I used was:
curl -s 'http://localhost:8080/git/notifyCommit?url=https://github.com/MarkEWaite/git-client-plugin&token=mytoken-inserted-here&branches=master&sha1=deadbeef'
I did not URL encode the '/' characters as is done in your case, so that might be one difference. I provide a notifyCommit token. that might be another difference. The plugin versions that I'm using are documented in my plugins.txt file.