Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jenkins error when update Github repository

Jenkins 2.46.3 git plugin 3.60 GitHub API Plugin 1.89 GitHub plugin 1.28.0

when I update branch with build status ( although the status updated successfully ) I got the following error :

20:57:57 ERROR: [GitHub Commit Status Setter] - Server returned HTTP response code: 201, message: 'Created' for URL

looks like only the latest github repositories got this error.

any idea ?

like image 865
Mor Lajb Avatar asked Sep 20 '26 09:09

Mor Lajb


2 Answers

=> Upgrade GitHub API Plugin to 1.90+

We got the same issue randomly and regardless which version of the plugin was used (deprecated or obsolete): see NXBT-1987 where I refer to other links. The cause appeared to be a change in GitHub API: they switched the format of some integers from 32 to 64 bits.
See jenkinsci/github-api-plugin/pull/16 and kohsuke/github-api/issues/387.

like image 63
Julien Carsique Avatar answered Sep 22 '26 10:09

Julien Carsique


The 200 range of status code are not errors. They indicate success. 201 in particular means some resource was successfully created.

like image 36
Rob Hales Avatar answered Sep 22 '26 10:09

Rob Hales



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!