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

Github oauth cli delete-builds broken

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Incomplete
    • Icon: Minor Minor
    • github-oauth-plugin
    • None

      JenkinsĀ 2.46.1, Github Authentication pluginĀ 0.27

      When you run delete-builds command github auth doesn't work and job is not found

      java -jar jenkins-cli.jar -s https://jenkins.example -noKeyAuth delete-builds "IT/pricing-deploy" 47 --username some-user
      
      ERROR: No such job 'IT/pricing-deploy'
      

      Jenkins should ask for github auth token but doesn't. If you specify --password parameter job is still not found.

      Other commands seem to work fine

      java -jar jenkins-cli.jar -s https://jenkins.example -noKeyAuth list-jobs IT --username some-user
      GitHub Personal Access Token: 
      admin-deploy
      ...
      pricing-deploy
      ...
      

            sag47 Sam Gleske
            kshcherban Konstantin Shcherban
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: