RejectedAccessException: Scripts not permitted to use method hudson.plugins.git.GitSCM getBranches

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Type: Improvement
    • Resolution: Fixed
    • Priority: Critical
    • Component/s: git-plugin
    • Environment:
      jenkins instance configured with github organization plugin and github authorization too.
    • git plugin 4.1.0

      It seems that I get this exception which is NOT logged inside the script approver which means there is not way to approve it.

      org.jenkinsci.plugins.scriptsecurity.sandbox.RejectedAccessException: Scripts not permitted to use method hudson.plugins.git.GitSCM getBranches
      

      This happened with this pipelineĀ https://github.com/pycontribs/powertape/blob/master/Jenkinsfile

      Ā 

      Now, the interesting thing is that if you configure a this project in jenkins using the pipeline type of of job and setting the source as SCM, it will work.

      So this problem is specific to this way of configuring the jobs.

            Assignee:
            Unassigned
            Reporter:
            Sorin Sbarnea
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: