Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-40855

Developer wants to connect to a GitHub Enterprise server

    • Icon: Story Story
    • Resolution: Fixed
    • Icon: Critical Critical
    • blueocean-plugin
    • None
    • tethys, pannonian, Blue Ocean 1.1, Blue Ocean 1.2-beta1, Blue Ocean 1.2-beta2

      Ready for release

      This improvement is completed and scheduled for release in 1.2. Check the roadmap page for updates.

      In Scope

      • New option "Github Enterprise"
      • Requires us to provide a URL to Github enterprise as part of the step that accepts the token

      Blocked on ATH harness for creation JENKINS-42600

      Mockups defined at https://cloudbees.atlassian.net/wiki/display/UX/Pipeline+Creation#PipelineCreation-GithubEnterprise

          [JENKINS-40855] Developer wants to connect to a GitHub Enterprise server

          James Dumay added a comment -

          vivek cliffmeyers can you please discuss what API changes might be needed to allow Github Enterprise server URL to be used?

          I have asked CloudBees internal OPs team to get you access to the testing server

          James Dumay added a comment - vivek cliffmeyers can you please discuss what API changes might be needed to allow Github Enterprise server URL to be used? I have asked CloudBees internal OPs team to get you access to the testing server

          Cliff Meyers added a comment -

          jamesdumay I recall seeing an e-mail about this but I am not sure if our access was ever granted or how to go about testing it?

          vivek if we can confirm this week we have access then perhaps I'll schedule a meeting to talk about what changes are needed. I think your API design for Github might already account for this with the URL field.

          Cliff Meyers added a comment - jamesdumay I recall seeing an e-mail about this but I am not sure if our access was ever granted or how to go about testing it? vivek if we can confirm this week we have access then perhaps I'll schedule a meeting to talk about what changes are needed. I think your API design for Github might already account for this with the URL field.

          Michael Neale added a comment -

          note: @zhouhaibing089 was interested in this

          Michael Neale added a comment - note: @zhouhaibing089 was interested in this

          David Porter added a comment -

          bighappyface is also very interested in GHE support!

          David Porter added a comment - bighappyface is also very interested in GHE support!

          Michael Neale added a comment -

          nice bighappyface. The main blocker now is nearly done: having end to end tests that run the flow with a real github org (and also better test coverage in general). As believe me, without that, Murphys law kicks in and something stupid happens... 

          Michael Neale added a comment - nice bighappyface . The main blocker now is nearly done: having end to end tests that run the flow with a real github org (and also better test coverage in general). As believe me, without that, Murphys law kicks in and something stupid happens... 

          Cliff Meyers added a comment - - edited

          There is some discussion as to whether the GitHub API endpoint URL should be specified via the UI (as in the screen comps) or via a system property set on Jenkins. This needs to be clarified as the former will require some changes in the backend code.

          Cliff Meyers added a comment - - edited There is some discussion as to whether the GitHub API endpoint URL should be specified via the UI (as in the screen comps) or via a system property set on Jenkins. This needs to be clarified as the former will require some changes in the backend code.

          Cliff Meyers added a comment -

          jamesdumay should we remove the "create an access key here" link? Now it points to github.com which won't help obviously. I'm not sure if GitHub Enterprise supports similar functionality, although the user would need to enter the URL first anyways.

          Cliff Meyers added a comment - jamesdumay should we remove the "create an access key here" link? Now it points to github.com which won't help obviously. I'm not sure if GitHub Enterprise supports similar functionality, although the user would need to enter the URL first anyways.

          Isaac Cohen added a comment -

          cliffmeyers FYI – the "create access key here" is the same link in GitHub Enterprise, provided that you use the GitHub Enterprise address (and not github.com).

          Isaac Cohen added a comment - cliffmeyers FYI – the "create access key here" is the same link in GitHub Enterprise, provided that you use the GitHub Enterprise address (and not github.com).

          Cliff Meyers added a comment -

          First PR with some backend changes is open and linked above.

          Cliff Meyers added a comment - First PR with some backend changes is open and linked above.

          James Dumay added a comment -

          cliffmeyers just to confirm, this feature should land with organisation folders. We will figure out what to do with org folders after Bitbucket (which won't have it). Bitbucket will serve as an an example on how to do creation the right way without org folders.

          James Dumay added a comment - cliffmeyers just to confirm, this feature should land with organisation folders. We will figure out what to do with org folders after Bitbucket (which won't have it). Bitbucket will serve as an an example on how to do creation the right way without org folders.

          Michael Neale added a comment -

          cliffmeyers jamesdumay we can change our approach if there is a lot of work to make it work with org folders. I am working on the assumption that there is no real change to that area as the code this is it better to proceed as is, but if I am wrong, we should rethink the order of things. 

          Michael Neale added a comment - cliffmeyers jamesdumay we can change our approach if there is a lot of work to make it work with org folders. I am working on the assumption that there is no real change to that area as the code this is it better to proceed as is, but if I am wrong, we should rethink the order of things. 

          Cliff Meyers added a comment -

          Should be fairly quick to make a final round of backend changes in PR #1145 and then get testing against a real GHE environment.

          Cliff Meyers added a comment - Should be fairly quick to make a final round of backend changes in PR #1145 and then get testing against a real GHE environment.

          Isaac Cohen added a comment -

          cliffmeyers Feel free to reach out if you need to test on GHE

          Isaac Cohen added a comment - cliffmeyers Feel free to reach out if you need to test on GHE

          Cliff Meyers added a comment -

          issc29 thanks, that's a very kind offer! I'm in the midst of getting access to our own private GHE instance but it would never hurt to have a second environment to test against. I'll drop you an e-mail to discuss.

          Cliff Meyers added a comment - issc29 thanks, that's a very kind offer! I'm in the midst of getting access to our own private GHE instance but it would never hurt to have a second environment to test against. I'll drop you an e-mail to discuss.

          Nat Sr added a comment -

          Thank you very much for working on this. I am waiting to use it once it's done.

          Nat Sr added a comment - Thank you very much for working on this. I am waiting to use it once it's done.

          Michael Neale added a comment -

          comscience15 if you are keen and can build this pull request: https://github.com/jenkinsci/blueocean-plugin/pull/1189 you can actually try it already (close to complete). 

           

           

          Michael Neale added a comment - comscience15 if you are keen and can build this pull request: https://github.com/jenkinsci/blueocean-plugin/pull/1189  you can actually try it already (close to complete).     

          Nat Sr added a comment -

          michaelneale Thanks, Michael.  I will wait until officially done.

          Nat Sr added a comment - michaelneale Thanks, Michael.  I will wait until officially done.

          Cliff Meyers added a comment -

          Landed this to master earlier today. Note that the organization avatars load as broken images presently. I am working on a follow-on PR to show a placeholder instead.

          Cliff Meyers added a comment - Landed this to master earlier today. Note that the organization avatars load as broken images presently. I am working on a follow-on PR to show a placeholder instead.

          Cliff Meyers added a comment -

          Fix for avatar icons is up.

          Cliff Meyers added a comment - Fix for avatar icons is up.

          Nat Sr added a comment -

          cliffmeyers Thanks. I would like to ask you after I updated Blue Ocean, I still don't see enterprise option. Could you please guiding me what should I do? see attached screenshot

          Nat Sr added a comment - cliffmeyers Thanks. I would like to ask you after I updated Blue Ocean, I still don't see enterprise option. Could you please guiding me what should I do? see attached screenshot

          James Dumay added a comment -

          Nat, this will be in next weeks beta so you will be able to try it then

          James Dumay added a comment - Nat, this will be in next weeks beta so you will be able to try it then

          Nat Sr added a comment -

          jamesdumay I see thanks James

          Nat Sr added a comment - jamesdumay I see thanks James

            cliffmeyers Cliff Meyers
            jamesdumay James Dumay
            Votes:
            14 Vote for this issue
            Watchers:
            23 Start watching this issue

              Created:
              Updated:
              Resolved: