Jenkins Trigger Git NotifyCommit Issue

XMLWordPrintable

      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:
      {
        X-VSS-ActivityId: fienfifiwnind-fnrdivcuibuiescv-cujhsbc
        X-VSS-SubscriptionId: recdcic-fnreci-veicikdnci
        User-Agent: VSServices/16.205.33618.1
        User-Agent: (w3wp.exe)
        Authorization: Basic ********
      }

       

      Response:

      Status Code: 500
      Reason Phrase: Server Error
      HTTP Version: 1.1
      Headers:
      {
        X-Jenkins-Session: 5ec30227
        X-Instance-Identity: 
        Cross-Origin-Opener-Policy: same-origin
        X-Hudson-Theme: default
        X-Content-Type-Options: nosniff
        Connection: close
        X-Hudson: 1.395
        X-Frame-Options: sameorigin
        Referrer-Policy: same-origin
        X-Jenkins: 2.426.2
        Cache-Control: no-store, must-revalidate, no-cache
        Date: Tue, 02 Jan 2024 05:49:18 GMT
        Set-Cookie:
        Server: Jetty(10.0.18)
        Content-Length: 9869
        Content-Type: text/html; charset=utf-8
        Expires: Thu, 01 Jan 1970 00:00:00 GMT
      }

      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.

            Assignee:
            Unassigned
            Reporter:
            Ashutosh Satpute
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: