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

Login and pasword doesn't get converted to a GitHub token

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Minor Minor
    • None
    • Jenkins 2.277, Docker version 18.06.3-ce build d7080c1, Debian GNU/Linux 8, GitHub API Plugin 1.122, GitHub plugin 1.32.0

      Steps to reproduce:

      # docker-compose.yml
      version: '3'
      services:
          jenkins:
              image: jenkins/jenkins:2.277
              ports:
                  - 8080:8080
      
      $ docker-compose up
      
      • Unlock Jenkins
      • Install suggested plugins
      • Create a user
      • Manage Jenkins > Manage Credentials > (Jenkins/global) Add credentials
        • Kind: Username with password
        • Scope: System
        • Username: (email)
        • Password: (password)
      • Manage Jenkins > Configure System > GitHub > Advanced... > Manage additional GitHub actions > Convert login and password to token
      • From credentials
        • Choose the created credentials
        • Create token credentials

      Output:

      Can't create GH token - https://api.github.com/authorizations {"message":"Not Found","documentation_url":"https://docs.github.com/rest"}
      
      • From login and password
        • Login: (email)
        • Password: (password)

      Output: same

      Supposedly Jenkins uses GitHub API v2 or something deprecated.

            Unassigned Unassigned
            xyuri Yuri Kanivetsky
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: