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

Not found a GH User Account

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Steps to reproduce it
      1. Fresh Jenkins installation (using Jenkins ver. 2.0-rc-1)
      2. Create a new GitHub Organization
      3. As owner we choose GH2 (there is a GitHub User Account with this name)
      4. Save the job
      Result in the console output
      Started
      Consulting GitHub Organization
      Connecting to github.com with no credentials, anonymous access
      FATAL: GH2 does not correspond to a known GitHub User Account or Organization
      Finished: FAILURE
      

        Attachments

          Issue Links

            Activity

            Hide
            recena Manuel Recena Soto added a comment - - edited

            For GitHub these URL are the same:

            1. https://github.com/RECENA
            2. https://github.com/recena

            This comparison should not be sensitive case:

            if (user != null && repoOwner.equals(user.getLogin())) {
                listener.getLogger().format("Looking up repositories of user %s%n%n", repoOwner);
                for (GHRepository repo : user.listRepositories()) {
                    add(listener, observer, repo);
                }
                return;
            }
            

            Idem for GH Organizations.

            Show
            recena Manuel Recena Soto added a comment - - edited For GitHub these URL are the same: https://github.com/RECENA https://github.com/recena This comparison should not be sensitive case: if (user != null && repoOwner.equals(user.getLogin())) { listener.getLogger().format( "Looking up repositories of user %s%n%n" , repoOwner); for (GHRepository repo : user.listRepositories()) { add(listener, observer, repo); } return ; } Idem for GH Organizations.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: recena
            Path:
            src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator.java
            src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource.java
            http://jenkins-ci.org/commit/github-branch-source-plugin/e7f4d3bcde4815e6a74317bd9329c3d897e6c612
            Log:
            JENKINS-34237 GH Organizations and GH User Accounts are searched using insensitive case

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: recena Path: src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator.java src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource.java http://jenkins-ci.org/commit/github-branch-source-plugin/e7f4d3bcde4815e6a74317bd9329c3d897e6c612 Log: JENKINS-34237 GH Organizations and GH User Accounts are searched using insensitive case
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Manuel Recena
            Path:
            src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator.java
            src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource.java
            http://jenkins-ci.org/commit/github-branch-source-plugin/f09a105d3d4e432b58a4f7285a24b4f2e1e4c05b
            Log:
            Merge pull request #44 from recena/JENKINS-34237

            JENKINS-34237 GH Org. and GH User Accounts are searched using insensitive case

            Compare: https://github.com/jenkinsci/github-branch-source-plugin/compare/80a151959a75...f09a105d3d4e

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Manuel Recena Path: src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMNavigator.java src/main/java/org/jenkinsci/plugins/github_branch_source/GitHubSCMSource.java http://jenkins-ci.org/commit/github-branch-source-plugin/f09a105d3d4e432b58a4f7285a24b4f2e1e4c05b Log: Merge pull request #44 from recena/ JENKINS-34237 JENKINS-34237 GH Org. and GH User Accounts are searched using insensitive case Compare: https://github.com/jenkinsci/github-branch-source-plugin/compare/80a151959a75...f09a105d3d4e

              People

              • Assignee:
                recena Manuel Recena Soto
                Reporter:
                recena Manuel Recena Soto
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: