question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Could not update commit status of the Pull Request on GitHub

See original GitHub issue

Could not update commit status of the Pull Request on GitHub.

Hey. I am getting the following error (it’s not failing a build nor having any negative consequences, despite not looking nice to have an error there) (version 1.37.0):

Setting status of a4e048bd6c7893cf071dcd4aa088ebc5b3545cfb to PENDING with url https://jenkins-inspire.web.cern.ch/job/multibranch-test/73/ and message: 'Build started sha1 is merged.'
Could not update commit status of the Pull Request on GitHub.
org.kohsuke.github.HttpException: Server returned HTTP response code: 201, message: 'Created' for URL: https://api.github.com/repos/bavaria95/multibranch/statuses/a4e048bd6c7893cf071dcd4aa088ebc5b3545cfb
	at org.kohsuke.github.Requester.parse(Requester.java:612)
	at org.kohsuke.github.Requester._to(Requester.java:262)
	at org.kohsuke.github.Requester.to(Requester.java:224)
	at org.kohsuke.github.GHRepository.createCommitStatus(GHRepository.java:1000)
	at org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus.createCommitStatus(GhprbSimpleStatus.java:272)
	at org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus.onBuildStart(GhprbSimpleStatus.java:185)
	at org.jenkinsci.plugins.ghprb.GhprbBuilds.onStarted(GhprbBuilds.java:130)
	at org.jenkinsci.plugins.ghprb.GhprbBuildListener.onStarted(GhprbBuildListener.java:18)
	at hudson.model.listeners.RunListener.fireStarted(RunListener.java:240)
	at org.jenkinsci.plugins.workflow.job.WorkflowRun.run(WorkflowRun.java:226)
	at hudson.model.ResourceController.execute(ResourceController.java:97)
	at hudson.model.Executor.run(Executor.java:421)
Caused by: java.io.IOException: Failed to deserialize {"url":"https://api.github.com/repos/bavaria95/multibranch/statuses/a4e048bd6c7893cf071dcd4aa088ebc5b3545cfb","id":4349256791,"state":"pending","description":"Build started sha1 is merged.","target_url":"https://jenkins-inspire.web.cern.ch/job/multibranch-test/73/","context":"default","created_at":"2017-11-27T09:43:23Z","updated_at":"2017-11-27T09:43:23Z","creator":{"login":"bavaria95","id":1766322,"avatar_url":"https://avatars1.githubusercontent.com/u/1766322?v=4","gravatar_id":"","url":"https://api.github.com/users/bavaria95","html_url":"https://github.com/bavaria95","followers_url":"https://api.github.com/users/bavaria95/followers","following_url":"https://api.github.com/users/bavaria95/following{/other_user}","gists_url":"https://api.github.com/users/bavaria95/gists{/gist_id}","starred_url":"https://api.github.com/users/bavaria95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bavaria95/subscriptions","organizations_url":"https://api.github.com/users/bavaria95/orgs","repos_url":"https://api.github.com/users/bavaria95/repos","events_url":"https://api.github.com/users/bavaria95/events{/privacy}","received_events_url":"https://api.github.com/users/bavaria95/received_events","type":"User","site_admin":false}}
	at org.kohsuke.github.Requester.parse(Requester.java:602)
	... 11 more
Caused by: com.fasterxml.jackson.databind.JsonMappingException: Numeric value (4349256791) out of range of int
 at [Source: java.io.StringReader@379735; line: 1, column: 126] (through reference chain: org.kohsuke.github.GHCommitStatus["id"])
	at com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:232)
	at com.fasterxml.jackson.databind.JsonMappingException.wrapWithPath(JsonMappingException.java:197)
	at com.fasterxml.jackson.databind.deser.BeanDeserializerBase.wrapAndThrow(BeanDeserializerBase.java:1311)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:297)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:121)
	at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:2888)
	at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2034)
	at org.kohsuke.github.Requester.parse(Requester.java:600)
	... 11 more
Caused by: com.fasterxml.jackson.core.JsonParseException: Numeric value (4349256791) out of range of int
 at [Source: java.io.StringReader@379735; line: 1, column: 126]
	at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1369)
	at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:532)
	at com.fasterxml.jackson.core.base.ParserBase.convertNumberToInt(ParserBase.java:847)
	at com.fasterxml.jackson.core.base.ParserBase.getIntValue(ParserBase.java:643)
	at com.fasterxml.jackson.databind.deser.std.StdDeserializer._parseInteger(StdDeserializer.java:306)
	at com.fasterxml.jackson.databind.deser.std.NumberDeserializers$IntegerDeserializer.deserialize(NumberDeserializers.java:319)
	at com.fasterxml.jackson.databind.deser.std.NumberDeserializers$IntegerDeserializer.deserialize(NumberDeserializers.java:301)
	at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:464)
	at com.fasterxml.jackson.databind.deser.impl.FieldProperty.deserializeAndSet(FieldProperty.java:107)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:295)
	... 15 more

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
kordianbruckcommented, Dec 3, 2017

I have version 1.90 of the Github API Plugin installed but am still getting this error. Is there anything else I can do apart wait for an update of this plugin?

0reactions
bjoernhaeusercommented, Jan 13, 2018

Probably due to upgrading to the lastest github-api version 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not update commit status, please check if your scan ...
Could not update commit status, please check if your scan credentials belong to a member of the organization or a collaborator of the...
Read more >
How to Update Jenkins Build Status in Github Tutorial
I can't see Jenkins build status in my GitHub repo pull request. ... call the GitHub API to update the status of the...
Read more >
TeamCity On-Premises - Commit Status Publisher - JetBrains
GitHub (the build statuses for pull requests are supported as well) ... Starting from version 2022.04, Commit Status Publisher updates the commit status...
Read more >
It would be a great asset to see jenkins build results on github ...
It then automatically builds a pull request and it would be great to see ... it seems to fail with the following message:...
Read more >
Building Git Pull Requests with Jenkins - DjaoDjin
The top results on Google recommend GitHub Pull Request Builder to integrate ... Could not update commit status, please check if your scan...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found