Re: New Credentials for Github jobs

2020-09-28 Thread Istvan Toth
Hi Gavin!

Is there any update on this ?

I have also tried to use the "ASF Cloudbees Jenkins ci-builds" credential
to add a comment to a GitHub PR, but it doesn't work.
A personal access token with *repo:status* and *public_repo*  scopes works
with the same job, but I'd rather not use personal tokens for the precommit
job in production.

The repo is https://github.com/apache/phoenix

regards
Istvan

On Fri, Aug 14, 2020 at 6:28 PM Gavin McDonald  wrote:

> Hi Joan,
>
> On Fri, Aug 14, 2020 at 11:30 AM Joan Touzet  wrote:
>
> > Could we get these on the ci-couchdb server for testing? Thanks.
> >
>
> Sure thing, added a new GH App and credentials for it are on ci-couchdb
> Master
>
> HTH
>
>
> >
> > -Joan
> >
> > On 2020-08-14 3:37 a.m., Gavin McDonald wrote:
> > > Hi All,
> > >
> > > For those of you waiting for the 'asf-ci' credentials - this is still
> not
> > > resolved yet, and is waiting
> > > for Cloudbees support.
> > >
> > > However - I have created some new credentials, based off of a GH App
> > rather
> > > than a role account.
> > >
> > > Look for credentials 'ASF Cloudbees Jenkins ci-builds' and give that a
> > try
> > > in your jobs please and see if that works for you. Let me know how it
> > goes
> > > for you.
> > >
> >
>
>
> --
>
> *Gavin McDonald*
> Systems Administrator
> ASF Infrastructure Team
>


Re: New Credentials for Github jobs

2020-08-14 Thread Gavin McDonald
Hi Joan,

On Fri, Aug 14, 2020 at 11:30 AM Joan Touzet  wrote:

> Could we get these on the ci-couchdb server for testing? Thanks.
>

Sure thing, added a new GH App and credentials for it are on ci-couchdb
Master

HTH


>
> -Joan
>
> On 2020-08-14 3:37 a.m., Gavin McDonald wrote:
> > Hi All,
> >
> > For those of you waiting for the 'asf-ci' credentials - this is still not
> > resolved yet, and is waiting
> > for Cloudbees support.
> >
> > However - I have created some new credentials, based off of a GH App
> rather
> > than a role account.
> >
> > Look for credentials 'ASF Cloudbees Jenkins ci-builds' and give that a
> try
> > in your jobs please and see if that works for you. Let me know how it
> goes
> > for you.
> >
>


-- 

*Gavin McDonald*
Systems Administrator
ASF Infrastructure Team


Re: New Credentials for Github jobs

2020-08-14 Thread Gavin McDonald
Hi Andor

On Fri, Aug 14, 2020 at 2:36 PM Andor Molnar  wrote:

> Hi Gavin,
>
> Looks like that the new credentials don’t have rights to update build
> status either:
>

I fixed that now, try again please.



>
>
> https://ci-hadoop.apache.org/view/ZooKeeper/job/ZooKeeper%20PreCommit%20GitHub%20PR/view/change-requests/job/PR-1429/2/console
>
> —
> Started by user Andor Molnar
> 09:38:53 Connecting to https://api.github.com using 76885/** (ASF
> Cloudbees Jenkins ci-hadoop)
>
> …
>
> Could not update commit status, please check if your scan credentials
> belong to a member of the organization or a collaborator of the repository
> and repo:status scope is selected
>
>
> GitHub has been notified of this commit’s build result
>
> ERROR: script returned exit code 1
> Finished: FAILURE
> —
>
> Andor
>
>
>
> > On 2020. Aug 14., at 9:37, Gavin McDonald  wrote:
> >
> > Hi All,
> >
> > For those of you waiting for the 'asf-ci' credentials - this is still not
> > resolved yet, and is waiting
> > for Cloudbees support.
> >
> > However - I have created some new credentials, based off of a GH App
> rather
> > than a role account.
> >
> > Look for credentials 'ASF Cloudbees Jenkins ci-builds' and give that a
> try
> > in your jobs please and see if that works for you. Let me know how it
> goes
> > for you.
> >
> > --
> >
> > *Gavin McDonald*
> > Systems Administrator
> > ASF Infrastructure Team
>
>

-- 

*Gavin McDonald*
Systems Administrator
ASF Infrastructure Team


Re: New Credentials for Github jobs

2020-08-14 Thread Andor Molnar
Thanks Robert, that works.
Nice to see my face next to ZooKeeper CI builds. :)


> On 2020. Aug 14., at 15:13, Robert Munteanu  wrote:
> 
> On Fri, 2020-08-14 at 14:36 +0200, Andor Molnar wrote:
>> Looks like that the new credentials don’t have rights to update build
>> status either
> 
> FWIW for the Sling builds I just created a personal access token with
> 'repo' scope. Kind of surprising to see a personal avatar commenting
> left and right, but that works with very little hassle.
> 
> Thanks,
> Robert
> 



Re: New Credentials for Github jobs

2020-08-14 Thread Robert Munteanu
On Fri, 2020-08-14 at 14:36 +0200, Andor Molnar wrote:
> Looks like that the new credentials don’t have rights to update build
> status either

FWIW for the Sling builds I just created a personal access token with
'repo' scope. Kind of surprising to see a personal avatar commenting
left and right, but that works with very little hassle.

Thanks,
Robert



Re: New Credentials for Github jobs

2020-08-14 Thread Andor Molnar
Hi Gavin,

Looks like that the new credentials don’t have rights to update build status 
either:

https://ci-hadoop.apache.org/view/ZooKeeper/job/ZooKeeper%20PreCommit%20GitHub%20PR/view/change-requests/job/PR-1429/2/console

—
Started by user Andor Molnar
09:38:53 Connecting to https://api.github.com using 76885/** (ASF Cloudbees 
Jenkins ci-hadoop)

…

Could not update commit status, please check if your scan credentials belong to 
a member of the organization or a collaborator of the repository and 
repo:status scope is selected


GitHub has been notified of this commit’s build result

ERROR: script returned exit code 1
Finished: FAILURE
—

Andor



> On 2020. Aug 14., at 9:37, Gavin McDonald  wrote:
> 
> Hi All,
> 
> For those of you waiting for the 'asf-ci' credentials - this is still not
> resolved yet, and is waiting
> for Cloudbees support.
> 
> However - I have created some new credentials, based off of a GH App rather
> than a role account.
> 
> Look for credentials 'ASF Cloudbees Jenkins ci-builds' and give that a try
> in your jobs please and see if that works for you. Let me know how it goes
> for you.
> 
> -- 
> 
> *Gavin McDonald*
> Systems Administrator
> ASF Infrastructure Team



Re: New Credentials for Github jobs

2020-08-14 Thread Joan Touzet

Could we get these on the ci-couchdb server for testing? Thanks.

-Joan

On 2020-08-14 3:37 a.m., Gavin McDonald wrote:

Hi All,

For those of you waiting for the 'asf-ci' credentials - this is still not
resolved yet, and is waiting
for Cloudbees support.

However - I have created some new credentials, based off of a GH App rather
than a role account.

Look for credentials 'ASF Cloudbees Jenkins ci-builds' and give that a try
in your jobs please and see if that works for you. Let me know how it goes
for you.