Connecting Gitea-Checks plugin to Gitea

Hello,

I’m attempting to use the gitea-checks plugin to update gitea status checks to use as conditions for PR acceptance.

Using declarative pipeline I have the following:

...
  stage ('Demo Stage')
    {			
      steps
        {
          withChecks('Demo Test')
	  {			 
             pwsh("demo_test_script.ps1")				
          }
....

The whole pipeline runs through to completion, but the commit status does not get posted to gitea.

Browsing the console output I see:

[Gitea Checks] Failed Publishing Gitea checks: java.net.ConnectException: Connection refused: connect
  • I have Jenkins credentials set up for a gitea user (Username and Password Credentials) - this appears to be accepted OK in the Gitea Server section in Dashboard>Manage Jenkins>System when entered into the Manage Hooks section

  • I also have a Gitea Personal Acces Token credential set up, this is not accepted as suitable credentials when entered into the Manage Hooks section (HTTP 401/Unauthorized)

  • Jenkins is temporarily running on my local machine, the gitea server is on another machine on the same LAN. Access to the Gitea Server is HTTP for now. It’s working well in all other aspects I’ve tried so far.

  • I can create a commit status in Gitea manually using the Gitea API and cURL and the same Access Token as above from my local machine:

curl -X 'POST'  'http://gitea_server:3000/api/v1/repos/my_org/my_repo/statuses/my_sha'  -H 'Authorization: token my_token' -H 'accept: application/json'   -H 'Content-Type: application/json'   -d '{  "context": "Curl Experimental Test Status",  "description": "blah",  "state": "failure",  "target_url": "http://my_server/my_repo"}'

Any thoughts as to what I’m missing in my setup to get this connecting, or where to look for further insight?

Thanks,

sca

Jenkins setup:

Jenkins: 2.479.2
OS: Windows 10 - 10.0
Java: 21.0.5 - Azul Systems, Inc. (OpenJDK 64-Bit Server VM)
---
apache-httpcomponents-client-4-api:4.5.14-208.v438351942757
asm-api:9.7.1-97.v4cc844130d97
authentication-tokens:1.119.v50285141b_7e1
bootstrap5-api:5.3.3-1
bouncycastle-api:2.30.1.78.1-248.ve27176eb_46cb_
branch-api:2.1200.v4b_a_3da_2eb_db_4
caffeine-api:3.1.8-133.v17b_1ff2e0599
checks-api:2.2.1
cloudbees-folder:6.963.v6edc0fc71472
commons-lang3-api:3.17.0-84.vb_b_938040b_078
commons-text-api:1.12.0-129.v99a_50df237f7
credentials:1405.vb_cda_74a_f8974
credentials-binding:687.v619cb_15e923f
display-url-api:2.209.v582ed814ff2f
dotnet-sdk:1.4.0
durable-task:581.v299a_5609d767
echarts-api:5.5.1-4
email-ext:1866.v14fa_6d201654
font-awesome-api:6.6.0-2
git:5.6.0
git-client:6.1.0
gitea:220.v4618c82a_40fb_
gitea-checks:504.v7d75347769cf
gson-api:2.11.0-85.v1f4e87273c33
handy-uri-templates-2-api:2.1.8-30.v7e777411b_148
instance-identity:201.vd2a_b_5a_468a_a_6
ionicons-api:74.v93d5eb_813d5f
jackson2-api:2.17.0-379.v02de8ec9f64c
jakarta-activation-api:2.1.3-1
jakarta-mail-api:2.1.3-1
javax-activation-api:1.2.0-7
javax-mail-api:1.6.2-10
jaxb:2.3.9-1
joda-time-api:2.13.0-93.v9934da_29b_a_e9
jquery3-api:3.7.1-2
json-api:20240303-101.v7a_8666713110
json-path-api:2.9.0-118.v7f23ed82a_8b_8
junit:1311.v39e1716e4eb_e
mailer:489.vd4b_25144138f
matrix-project:840.v812f627cb_578
mina-sshd-api-common:2.14.0-133.vcc091215a_358
mina-sshd-api-core:2.14.0-133.vcc091215a_358
msbuild:1.35
nunit:547.v9dcdd7a_90848
pipeline-build-step:540.vb_e8849e1a_b_d8
pipeline-groovy-lib:744.v5b_556ee7c253
pipeline-input-step:495.ve9c153f6067b_
pipeline-milestone-step:119.vdfdc43fc3b_9a_
pipeline-model-api:2.2218.v56d0cda_37c72
pipeline-model-definition:2.2218.v56d0cda_37c72
pipeline-model-extensions:2.2218.v56d0cda_37c72
pipeline-stage-step:312.v8cd10304c27a_
pipeline-stage-tags-metadata:2.2218.v56d0cda_37c72
plain-credentials:183.va_de8f1dd5a_2b_
plugin-util-api:5.1.0
powershell:2.2
resource-disposer:0.25
scm-api:698.v8e3b_c788f0a_6
script-security:1369.v9b_98a_4e95b_2d
snakeyaml-api:2.3-123.v13484c65210a_
ssh-credentials:349.vb_8b_6b_9709f5b_
structs:338.v848422169819
token-macro:400.v35420b_922dcb_
variant:60.v7290fc0eb_b_cd
workflow-aggregator:600.vb_57cdd26fdd7
workflow-api:1336.vee415d95c521
workflow-basic-steps:1058.vcb_fc1e3a_21a_9
workflow-cps:4000.v5198556e9cea_
workflow-durable-task-step:1398.vf6c9e89e5988
workflow-job:1472.ve4d5eca_143c4
workflow-multibranch:795.ve0cb_1f45ca_9a_
workflow-scm-step:427.v4ca_6512e7df1
workflow-step-api:678.v3ee58b_469476
workflow-support:936.v9fa_77211ca_e1
ws-cleanup:0.48