infra-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guozhang Wang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (INFRA-15409) Add GitHub PR Coverage Status Plugin in Jenkins
Date Wed, 10 Jan 2018 23:47:00 GMT

    [ https://issues.apache.org/jira/browse/INFRA-15409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16321364#comment-16321364
] 

Guozhang Wang commented on INFRA-15409:
---------------------------------------

[~gmcdonald] While trying to install this plug in into the jenkins builds, I realized it seems
does not have the authentication installed. Here is the shown stack trace from one of the
builds: https://builds.apache.org/job/kafka-pr-jdk8-scala2.12/10408/console

{code}
Caused by: java.io.IOException: Server returned HTTP response code: 401 for URL: https://api.github.com/repos/apache/kafka/issues/4402/comments
{code}

And by looking into the source code for this plugin, I realized this line (https://github.com/jenkinsci/github-pr-coverage-status-plugin/blob/83002c61b9159f75a8dbf8c7e244f99353e18710/src/main/java/com/github/terma/jenkins/githubprcoveragestatus/CompareCoverageAction.java#L134)
is rejected for 401. So I'm wondering if we missed the second step as described in https://github.com/jenkinsci/github-pr-coverage-status-plugin

{code}
Configure global settings of plugin
* GitHub API URL keep blank for GitHub.com and fill if for dedicated instance of GitHub, example:
http(s)://hostname/api/v3/
* Set Personal Access Token (or keep blank if anonymous access enabled)
{code}


> Add GitHub PR Coverage Status Plugin in Jenkins
> -----------------------------------------------
>
>                 Key: INFRA-15409
>                 URL: https://issues.apache.org/jira/browse/INFRA-15409
>             Project: Infrastructure
>          Issue Type: Github Integration
>          Components: Jenkins
>            Reporter: Guozhang Wang
>            Assignee: Gavin
>




--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message