• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • gitea-plugin
    • Jenkins version : 2.222.3
      Gitea version : 1.8.1
      All components run on docker container

      I have configured a Weeb Hook on Gitea server.

      The test of this hook seems to works fine (HTTP 200 return code and Response body = Processe) but no build is visible on Jenkins side.

          [JENKINS-62095] Webhook not working with return Processed

          A status of incomplete means that the reporter has questions to answer or missing information to provide. Please reopen if/when the response has been provided and there remains an issue to be addressed

          Stephen Connolly added a comment - A status of incomplete means that the reporter has questions to answer or missing information to provide. Please reopen if/when the response has been provided and there remains an issue to be addressed

          I have updated the Gitea plugin to version 1.2.1 but the same problem still here.

          Boris Manchette added a comment - I have updated the Gitea plugin to version 1.2.1 but the same problem still here.

          We’d need some logs or a reproduction scenario to make progress

          Stephen Connolly added a comment - We’d need some logs or a reproduction scenario to make progress

          No problem.

          Could you describe which file is necessary to analyze this behaviour?

          Boris Manchette added a comment - No problem. Could you describe which file is necessary to analyze this behaviour?

          The Multibranch project’s event log

          If multibranch is in an org folder, the org folder’s event logs

          Snipped around the event

          Would be a start anyway

          Stephen Connolly added a comment - The Multibranch project’s event log If multibranch is in an org folder, the org folder’s event logs Snipped around the event Would be a start anyway

          When I click on "Multibranch Pipeline Events", no event is tracing.

          Could you explain how to send the desired log file?

          Boris Manchette added a comment - When I click on "Multibranch Pipeline Events", no event is tracing. Could you explain how to send the desired log file?

          As far as I can see a possible problem with webhooks and the gitea plugin is the usage of ssh credentials for gitea with a different url. AFAIK, the webhook checks only the html url in the payload of the webhook:

          Gitea GiteaCreateSCMEvent.java

          In my case the https (html) and ssh url are different. The scm event was triggered but the event matcher will not find any matching jenkins job for the webhook. However, the return will be 200 and processed.

          You can test this with replacing the html url in the json, which gitea provides in the webhook view, and using curl to POST the request. If I inserted my ssh url in the html of the json, then the webhook triggered the job correctĺy.

          Entering an alias in the jenkins settings does not change the way, the event matcher works. I don't want to setup a specific jenkins user for gitea as I wanted to use deploy keys only. Another solution would be to add a check in GiteaCreateSCMEvent.isMatch(..) with the ssh url: ...(getPayload().getRepository().getSshUrl());...

          Steffen Gaisser added a comment - As far as I can see a possible problem with webhooks and the gitea plugin is the usage of ssh credentials for gitea with a different url. AFAIK, the webhook checks only the html url in the payload of the webhook: Gitea GiteaCreateSCMEvent.java In my case the https (html) and ssh url are different. The scm event was triggered but the event matcher will not find any matching jenkins job for the webhook. However, the return will be 200 and processed. You can test this with replacing the html url in the json, which gitea provides in the webhook view, and using curl to POST the request. If I inserted my ssh url in the html of the json, then the webhook triggered the job correctĺy. Entering an alias in the jenkins settings does not change the way, the event matcher works. I don't want to setup a specific jenkins user for gitea as I wanted to use deploy keys only. Another solution would be to add a check in GiteaCreateSCMEvent.isMatch(..) with the ssh url: ...(getPayload().getRepository().getSshUrl());...

          stegss I suspect that I am having a very similar issue to yours, but am struggling to reproduce your ability to get the job to fire off with a doctored JSON through curl. Could you provide a more complete example of what you're doing?

          Mitchell Young added a comment - stegss I suspect that I am having a very similar issue to yours, but am struggling to reproduce your ability to get the job to fire off with a doctored JSON through curl. Could you provide a more complete example of what you're doing?

          Sam Gleske added a comment - - edited

          I experienced the same symptoms. I have chased down the issue in my production setup and provided a lot of detail in JENKINS-72047

          Most relevant comment https://issues.jenkins.io/browse/JENKINS-72047?focusedId=441635&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-441635

          Sam Gleske added a comment - - edited I experienced the same symptoms. I have chased down the issue in my production setup and provided a lot of detail in JENKINS-72047 Most relevant comment https://issues.jenkins.io/browse/JENKINS-72047?focusedId=441635&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-441635

          Sam Gleske added a comment -

          I've narrowed down my issue; I've found this bug report to be unrelated to mine. Disregard my earlier comments.

          Sam Gleske added a comment - I've narrowed down my issue; I've found this bug report to be unrelated to mine. Disregard my earlier comments.

            Unassigned Unassigned
            sadmin91 Boris Manchette
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: