View Issue Details

IDProjectCategoryView StatusLast Update
0016919CentOS CI[All Projects] generalpublic2020-01-31 07:54
Reporterrhopp 
PrioritynormalSeverityminorReproducibilityN/A
Status resolvedResolutionfixed 
Summary0016919: Create new jenkins credential
DescriptionHello,
We need to put new credential to jenkins credentials store in ci.centos.org
If name for this credential is needed, `CHE-BOT-TOKEN` can be used.
I'm not sure who will be responsible for this, but in past, @bstinson was taking care of this, so I'm attaching the value to put into the secret here, encrypted with Brian's public key (from here: https://gitlab.cee.redhat.com/dtsd/housekeeping/blob/master/gpg/bstinson.pub.asc):


-----BEGIN PGP MESSAGE-----

hQIMAx/XhQXCVA2gAQ/9Hhc6VoTna9LmMuH57gDpsUTCc5n0EVe1Pe6kSmTJcJ3J
VsADt5ILje3ipHdyett0PT250j1oluqirQwDVAZE5Vri1+0V9BfX2wsd6MolxJ/m
IGx6QwZ7nsmUGFfNWuybgYySd4Jh9v5Z0zkLKfQ79kxiRBGi6Eb1xlNVi/1+jjG1
rDu+XmZpMO9k+h4QCsQ2/TBPncbVaHrWCwhTsHakxMmi6IJNQOTDf7d12FEXmuqb
lIautCGTsOjUBwf7TvicqJnDdI4cmTo5V6SeVXtYCjt59gMsLkKiPHACbn0IlvsI
OT5OHWieh8HPHyOgqkTsxAl60y0+IJDYPRVc+bm1ka5nVpp2Zhp5rQQccXTfruCw
jkv1F7JAIsPq6GFnHC67YGaHP19/TneiFB9yiydfbblZ3ISz9Ii8XkQA3rwDY3Fx
549nw3SSdIl7pV0UaOWLOqT6/QmWlLem4rCAM9fXwKUEI3MVu00Z8NV2pFyz6jWS
XZICxVHQtSKpYMcu4Wxm6jxjB5wFfb3Clly2WOA2fnjrqL2e09EIdZgnTMZxOrjP
Li3vpRsEYTim7rwYJLlmLUeTJ1OGa76lb4Cm8u1eKv+ZjMYyWej6P/sBWIKxINjy
guh9+DDOPva42rdr52Rej40CqerJZI5TG2aoRXIIw83uYwGP2nu4hCuVEZZxAA3S
YwHgcKdtIe/dmDcitYeUE2IBHOa6lqchhPPpOLVhmdXWmg8sjmXrncDRb4Z2S1xZ
t9Kwk7eANFxGqfj/jWgfgMQuWvjA+82JwrOR7Xqq1xSCASZIUQpYJZ4KhBFnBQHE
GC0ZfQ==
=EPGr
-----END PGP MESSAGE-----


If somebody else will take care of this, just shoot me a message with your public key, please ;-)
TagsNo tags attached.

Activities

rhopp

rhopp

2020-01-16 15:08

reporter   ~0036039

Hello,
We need this for enabling PR checks on eclipse/che repositories. We cannot enable existing `centos-ci` github bot account for this, as eclipse foundation doesn't allows us to do so (https://bugs.eclipse.org/bugs/show_bug.cgi?id=558260)

To enable us to use our own github bot (maintained by eclipse foundation), entry in Jenkins Pull Request builder configuration needs to be added.

Here's how to do it:
1) Go to Jenkins configuration ("Jenkins -> Manage Jenkins -> Configure System") and find "GitHub Pull Request Builder" section.
2) Add new entry, where
  GitHub Server API URL = https://api.github.com
  Credentials = the che-bot token from jenkins credentials store
  Description = Some meaningfull name (for example "che-bot")
  Other fields can remain empty
3) (Example of such configuration can be seen on attached screenshot `ghprb1.png`)

Then we need to obtain ID of this entry (to be used in our jobs). I didn't find any easy way how to get this other than:
1) Go to some (freestyle) job config (or create temporary one).
2) Go to Triggers section and enable "GitHub Pull Request Builder"
3) As "GitHub API credentials" select the one you created earlier in jenkins config (che-bot) (Screenshot `ghprb2.png`)
4) Save this job and go to it's config.xml (`<URL_OF_THE_JOB>/config.xml`). There locate "triggers -> org.jenkinsci.plugins.ghprb.GhprbTrigger -> gitHubAuthId" and send us this value, so we can reference this in our jobs.

Hope this is possible.
Thanks!

ghprb1.png (37,466 bytes)
ghprb1.png (37,466 bytes)
ghprb2.png (23,567 bytes)
ghprb2.png (23,567 bytes)
rhopp

rhopp

2020-01-30 09:49

reporter   ~0036158

Update: I've sent an e-mail with the token directly to @siddharthvipul1.
siddharthvipul1

siddharthvipul1

2020-01-31 07:53

developer   ~0036164

I have added the credentials.
Please select GitHubAPI/CHE with description "eclipse-che connection to GitHub"
siddharthvipul1

siddharthvipul1

2020-01-31 07:54

developer   ~0036165

added

Issue History

Date Modified Username Field Change
2020-01-14 07:47 rhopp New Issue
2020-01-16 15:08 rhopp File Added: ghprb1.png
2020-01-16 15:08 rhopp File Added: ghprb2.png
2020-01-16 15:08 rhopp Note Added: 0036039
2020-01-29 15:13 siddharthvipul1 Project Buildsys => CentOS CI
2020-01-29 15:13 siddharthvipul1 Category Ci.centos.org Ecosystem Testing => general
2020-01-30 09:49 rhopp Note Added: 0036158
2020-01-31 07:53 siddharthvipul1 Note Added: 0036164
2020-01-31 07:54 siddharthvipul1 Status new => resolved
2020-01-31 07:54 siddharthvipul1 Resolution open => fixed
2020-01-31 07:54 siddharthvipul1 Note Added: 0036165