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

Next-Build-Number-Plugin: Running set-next-build-number command does not respect authorize-project and project security settings.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • Jenkins core: 2.32.1
      Next Build Number plugin: 1.4
      Authorize Project: 1.3.0

      We got AD authentication enabled on all of our Jenkins servers and have limited the ability to launch and configure jobs to only logged-in domain users. Anon has only read, extended read and workspace job-related permissions. Running set-net-build-number via shell with authorization strategy for that job set as 'Run as User who triggered build' produces permission denied-type error:

      00:00:00.059 + java -Djavax.net.ssl.trustStore=jenkinsserver.domain.com -Djavax.net.ssl.trustStorePassword=StorePass -jar jenkins-cli.jar -s https://jenkinsserver.domain.com/ set-next-build-number Job_Name 10
      00:00:01.975
      00:00:01.979 ERROR: anonymous is missing the Job/Configure permission

      Also, when I enable 'Block inheritance of global authorization matrix' and explicitly set Anonymous permissions to allow for job configuration, the issue still persists and the same error appears. Command executes successfully only after setting job/configure permission on a global level.

            akom Alexander Komarov
            vmarin Valentin Marin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: