Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ee4j-build] How to submit GitHub pull request from Jenkins

I already had ssh agent in the job. looks like it needs something more...


GitHub OAuth authentication

Hub will prompt for GitHub username & password the first time it needs to access the API and exchange it for an OAuth token, which it saves in ~/.config/hub.

To avoid being prompted, use GITHUB_USER and GITHUB_PASSWORD environment variables.

Alternatively, you may provide GITHUB_TOKEN, an access token with repo permissions. This will not be written to ~/.config/hub.

So we have to generate token for https://github.com/eclipse-ee4j/metro-xmlstreambuffer and add it as GITHUB_TOKEN in https://jenkins.eclipse.org/metro/job/xmlstreambuffer-master-dependency-update/ job.

I don't have rights to configure it so it's up to you to test it.

tomas


Dne 29.05.19 v 14:56 Mikaël Barbero napsal(a):
No need to open anything, you just have to inject credentials like described here https://wiki.eclipse.org/EE4J_Build#Push_commits.2Ftag_to_GitHub_repository

The credentials ID is "github-bot-ssh".

Cheers,

Mikaël Barbero 
Team Lead - Release Engineering | Eclipse Foundation
📱 (+33) 642 028 039 | 🐦 @mikbarbero
Eclipse Foundation: The Platform for Open Innovation and Collaboration

Le 29 mai 2019 à 14:36, Tomas Kraus <tomas.kraus@xxxxxxxxxx> a écrit :

I already did it. But it won't work until credentials are set up properly.

See https://jenkins.eclipse.org/metro/job/xmlstreambuffer-master-dependency-update/22/console

Shall I open a bug to request setup of this utilty including credentials?


Tomas

Dne 29.05.19 v 14:27 Mikaël Barbero napsal(a):
I know nothing similar to that but according to the doc https://github.com/github/hub#standalone, you can just download the binary during your build and and untar it somewhere in your $PATH to be able to use it.

HTH

Mikaël Barbero 
Team Lead - Release Engineering | Eclipse Foundation
📱 (+33) 642 028 039 | 🐦 @mikbarbero
Eclipse Foundation: The Platform for Open Innovation and Collaboration

Le 29 mai 2019 à 11:59, Tomas Kraus <tomas.kraus@xxxxxxxxxx> a écrit :

Hi Mikael and Frederic,

is there a way how to submit GitHub pull request on newly created branch from Jenkins job on jenkins.eclipse.org?

One way of doing that is utility from https://hub.github.com/ (https://github.com/github/hub), but that binary is not available in docker image.


Tomas

_______________________________________________
ee4j-build mailing list
ee4j-build@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/ee4j-build


_______________________________________________
ee4j-build mailing list
ee4j-build@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/ee4j-build
_______________________________________________
ee4j-build mailing list
ee4j-build@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/ee4j-build


_______________________________________________
ee4j-build mailing list
ee4j-build@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/ee4j-build

Back to the top