ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

From the console output of your job I see that you're getting permission denied from github (see log snippet below). I think that you have not given enough privileges for the webook to write the PR status back to your repository.

01:42:02 Setting status of 5e8c461ac29ae9919d6fd9e52ab33993f7a39a57 to SUCCESS with url http://build.ros.org/job/Npr__ixblue_ins_stdbin_driver__ubuntu_focal_amd64/1/ and message: 'Build finished. ' 01:42:02 Using context: Npr__ixblue_ins_stdbin_driver__ubuntu_focal_amd64 01:42:03 FileNotFoundException means that the credentials Jenkins is using is probably wrong. Or the user account does not have write access to the repo. 01:42:03 org.kohsuke.github.GHFileNotFoundException: {"message":"Not Found","documentation_url":"https://docs.github.com/rest/reference/repos#create-a-commit-status"} 01:42:03 at org.kohsuke.github.Requester.handleApiError(Requester.java:699) 01:42:03 at org.kohsuke.github.Requester._to(Requester.java:306) 01:42:03 at org.kohsuke.github.Requester.to(Requester.java:247) 01:42:03 at org.kohsuke.github.GHRepository.createCommitStatus(GHRepository.java:1104) 01:42:03 at org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus.createCommitStatus(GhprbSimpleStatus.java:283) 01:42:03 at org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus.onBuildComplete(GhprbSimpleStatus.java:241) 01:42:03 at org.jenkinsci.plugins.ghprb.GhprbBuilds.onCompleted(GhprbBuilds.java:205) 01:42:03 at org.jenkinsci.plugins.ghprb.GhprbBuildListener.onCompleted(GhprbBuildListener.java:28) 01:42:03 at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:209) 01:42:03 at hudson.model.Run.execute(Run.java:1925) 01:42:03 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 01:42:03 at hudson.model.ResourceController.execute(ResourceController.java:97) 01:42:03 at hudson.model.Executor.run(Executor.java:428) 01:42:03 Caused by: java.io.FileNotFoundException: https://api.github.com/repos/ixblue/ixblue_ins_stdbin_driver/statuses/5e8c461ac29ae9919d6fd9e52ab33993f7a39a57 01:42:03 at sun.reflect.GeneratedConstructorAccessor63895.newInstance(Unknown Source) 01:42:03 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) 01:42:03 at java.lang.reflect.Constructor.newInstance(Constructor.java:423) 01:42:03 at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1950) 01:42:03 at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1945) 01:42:03 at java.security.AccessController.doPrivileged(Native Method) 01:42:03 at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1944) 01:42:03 at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1514) 01:42:03 at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498) 01:42:03 at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:268) 01:42:03 at org.kohsuke.github.Requester.parse(Requester.java:625) 01:42:03 at org.kohsuke.github.Requester.parse(Requester.java:607) 01:42:03 at org.kohsuke.github.Requester._to(Requester.java:285) 01:42:03 ... 11 more 01:42:03 Caused by: java.io.FileNotFoundException: https://api.github.com/repos/ixblue/ixblue_ins_stdbin_driver/statuses/5e8c461ac29ae9919d6fd9e52ab33993f7a39a57 01:42:03 at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1896) 01:42:03 at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498) 01:42:03 at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480) 01:42:03 at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:352) 01:42:03 at org.kohsuke.github.Requester.parse(Requester.java:615) 01:42:03 ... 13 more

click to hide/show revision 2
No.2 Revision

From the console output of your job I see that you're getting permission denied from github (see log snippet below). I think that you have not given enough privileges for the webook to write the PR status back to your repository.

 01:42:02 Setting status of 5e8c461ac29ae9919d6fd9e52ab33993f7a39a57 to SUCCESS with url http://build.ros.org/job/Npr__ixblue_ins_stdbin_driver__ubuntu_focal_amd64/1/ and message: 'Build finished. '
01:42:02 Using context: Npr__ixblue_ins_stdbin_driver__ubuntu_focal_amd64
01:42:03 FileNotFoundException means that the credentials Jenkins is using is probably wrong. Or the user account does not have write access to the repo.
01:42:03 org.kohsuke.github.GHFileNotFoundException: {"message":"Not Found","documentation_url":"https://docs.github.com/rest/reference/repos#create-a-commit-status"}
01:42:03    at org.kohsuke.github.Requester.handleApiError(Requester.java:699)
01:42:03    at org.kohsuke.github.Requester._to(Requester.java:306)
01:42:03    at org.kohsuke.github.Requester.to(Requester.java:247)
01:42:03    at org.kohsuke.github.GHRepository.createCommitStatus(GHRepository.java:1104)
01:42:03    at org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus.createCommitStatus(GhprbSimpleStatus.java:283)
01:42:03    at org.jenkinsci.plugins.ghprb.extensions.status.GhprbSimpleStatus.onBuildComplete(GhprbSimpleStatus.java:241)
01:42:03    at org.jenkinsci.plugins.ghprb.GhprbBuilds.onCompleted(GhprbBuilds.java:205)
01:42:03    at org.jenkinsci.plugins.ghprb.GhprbBuildListener.onCompleted(GhprbBuildListener.java:28)
01:42:03    at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:209)
01:42:03    at hudson.model.Run.execute(Run.java:1925)
01:42:03    at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
01:42:03    at hudson.model.ResourceController.execute(ResourceController.java:97)
01:42:03    at hudson.model.Executor.run(Executor.java:428)
01:42:03 Caused by: java.io.FileNotFoundException: https://api.github.com/repos/ixblue/ixblue_ins_stdbin_driver/statuses/5e8c461ac29ae9919d6fd9e52ab33993f7a39a57
01:42:03    at sun.reflect.GeneratedConstructorAccessor63895.newInstance(Unknown Source)
01:42:03    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
01:42:03    at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
01:42:03    at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1950)
01:42:03    at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1945)
01:42:03    at java.security.AccessController.doPrivileged(Native Method)
01:42:03    at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1944)
01:42:03    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1514)
01:42:03    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498)
01:42:03    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:268)
01:42:03    at org.kohsuke.github.Requester.parse(Requester.java:625)
01:42:03    at org.kohsuke.github.Requester.parse(Requester.java:607)
01:42:03    at org.kohsuke.github.Requester._to(Requester.java:285)
01:42:03    ... 11 more
01:42:03 Caused by: java.io.FileNotFoundException: https://api.github.com/repos/ixblue/ixblue_ins_stdbin_driver/statuses/5e8c461ac29ae9919d6fd9e52ab33993f7a39a57
01:42:03    at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1896)
01:42:03    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1498)
01:42:03    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
01:42:03    at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:352)
01:42:03    at org.kohsuke.github.Requester.parse(Requester.java:615)
01:42:03    ... 13 more