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

Github oauth cli delete-builds broken

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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
      ...
      

        Attachments

          Activity

          Hide
          sag47 Sam Gleske added a comment -

          Can you instead try with the following command?  Replace samrocketman with your own user and token with your personal access token.

          java -jar jenkins-cli.jar -s http://localhost:8080/ -http -auth samrocketman:token -noKeyAuth delete-builds "IT/pricing-deploy" 47
          
          Show
          sag47 Sam Gleske added a comment - Can you instead try with the following command?  Replace samrocketman with your own user and token with your personal access token. java -jar jenkins-cli.jar -s http://localhost:8080/ -http -auth samrocketman:token -noKeyAuth delete-builds "IT/pricing-deploy" 47
          Hide
          sag47 Sam Gleske added a comment -

          User didn't report back and my own testing of using GitHub OAuth with Jenkins CLI seems fine.

          Show
          sag47 Sam Gleske added a comment - User didn't report back and my own testing of using GitHub OAuth with Jenkins CLI seems fine.

            People

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

              Dates

              Created:
              Updated:
              Resolved: