• Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • gitea-plugin
    • None
    • gitea 1.16.9
      latest jenkins lts with up-to-date plugins

      o.j.p.g.GiteaNotifier$JobScheduledListener$1#run: Could not send commit status notification for proj/repo/main to https://gitea.xxx.test
      org.jenkinsci.plugin.gitea.client.api.GiteaHttpStatusException: HTTP 403/Forbidden
      {"context":"proj/repo/pipeline/head","description":"Build queued...","state":"pending","status":"pending","target_url":"https://jenkins.xxxx.test/job/proj/job/repo/job/main/display/redirect"}
      	at org.jenkinsci.plugin.gitea.client.impl.DefaultGiteaConnection.post(DefaultGiteaConnection.java:908)
      	at org.jenkinsci.plugin.gitea.client.impl.DefaultGiteaConnection.createCommitStatus(DefaultGiteaConnection.java:594)
      	at org.jenkinsci.plugin.gitea.GiteaNotifier$JobScheduledListener$1.run(GiteaNotifier.java:280)
      	at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
      	at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
      	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      	at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      	at java.base/java.lang.Thread.run(Unknown Source)
      

      Seems to be related to latest gitea update from 1.16.8 to 1.16.9

          [JENKINS-69027] Failed to post build status

          I see this in gitea logs

          2022/07/15 15:38:13 Started GET /api/v1/version for 10.42.205.171:0
          2022/07/15 15:38:13 Completed GET /api/v1/version 403 Forbidden in 1.197723ms
          

          Michael Kriese added a comment - I see this in gitea logs 2022/07/15 15:38:13 Started GET /api/v1/version for 10.42.205.171:0 2022/07/15 15:38:13 Completed GET /api/v1/version 403 Forbidden in 1.197723ms

          Michael Kriese added a comment - probablyx because of https://github.com/go-gitea/gitea/issues/20331

          ok, the gitea user for jenkins now needs code write permissions

          Michael Kriese added a comment - ok, the gitea user for jenkins now needs code write permissions

          Steven added a comment -

          Steven added a comment - https://github.com/jenkinsci/gitea-plugin/pull/58 to add hint to plugin docs.

            Unassigned Unassigned
            viceice Michael Kriese
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: