0

I want to set the commit status on my gitea server after a build in jenkins.

Gitea has the endpoint for that, but in my build steps I don't see the option for that. Also, I have already installed gitea plugin (https://wiki.jenkins.io/display/JENKINS/Gitea+Plugin)

Has anyone figure out how to setup this in jenkins?

enter image description here

enter image description here

Update: Added screenshot with the gitea communication errorenter image description here

FranAguiar
  • 637
  • 3
  • 14
  • 31
  • Considering the Gitea communication error: see following answer: https://stackoverflow.com/a/58647936/11993501 – mrlov Oct 31 '19 at 17:18

1 Answers1

1

Ok, I found it. Gitea-plugin allows you to create a new kind of job. You have to configure your gitea server in Jenkins-> Manage Jenkins -> Configure System.

After that you only have to create a new job of kind Gitea Organization. This will do all work without setting nothing more.

I recommend too, setting up Gitea webhook to Jenkins

Pando85
  • 34
  • 4
  • I already tried to add my gitea server in configure system but I'm always get a communicate error (403/Forbidden), my server is secured(https) and I configured the token properly (If I remove the token I get a 401, that is logic). So, I have no clue what is happening. I will add a screenshot to the main post – FranAguiar Feb 05 '19 at 11:55
  • This plugin is bad/not documented. I don't remember where but I read that you have to use an admin user in your configuration. I create a new admin (service) user just for jenkins in Gitea and configure it with it. ![jenkins config](https://imgur.com/a/yr9hurf). – Pando85 Feb 06 '19 at 13:02
  • Did you try using user and pass instead of token? – Pando85 Feb 13 '19 at 05:40