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

jenkins pipeline jobs running outside groovy sandbox

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • groovy-plugin
    • None

      Hi Team,

      I want to restrict users to run their jobs in groovy sandbox only.

      In pipeline job if I unchecked Use Groovy Sandbox  then job should not run
      it should come for approval to jenkins administrator.

      but currently it is happening reverse way.

      I*f Use Groovy Sandbox is checked : It is asking for approval of jenkins administator*
      If Use Groovy Sandbox is uncheck : Pipeline job is getting executing.

      can you please help the same.

      jenkins version : 2.263.1

          [JENKINS-66211] jenkins pipeline jobs running outside groovy sandbox

          Gaurav added a comment -

          vjuranek : Can you please check the same and help me the same.

          Gaurav added a comment - vjuranek  : Can you please check the same and help me the same.

          Kalle Niemitalo added a comment - - edited

          You filed this issue on the groovy-plugin component, i.e. the Groovy plugin. However, you also write about a ”pipeline job”, and I don’t think that plugin is used for Groovy scripts in pipeline jobs. Perhaps the component should be one of the following, instead:

          Kalle Niemitalo added a comment - - edited You filed this issue on the groovy-plugin component, i.e. the Groovy plugin. However, you also write about a ”pipeline job”, and I don’t think that plugin is used for Groovy scripts in pipeline jobs. Perhaps the component should be one of the following, instead: workflow-cps-plugin for the Pipeline: Groovy plugin script-security-plugin for the Script Security plugin

          If Use Groovy Sandbox is uncheck : Pipeline job is getting executing.

          Are all users able to uncheck ”Use Groovy Sandbox”, or are only administrators able to do so?

          Kalle Niemitalo added a comment - If Use Groovy Sandbox is uncheck : Pipeline job is getting executing. Are all users able to uncheck ”Use Groovy Sandbox”, or are only administrators able to do so?

          Gaurav added a comment -

          kon : as all users are able to check and uncheck the "Use Groovy Sandbox”

          can we make it to permanent checked. 

          Gaurav added a comment - kon  : as all users are able to check and uncheck the "Use Groovy Sandbox” can we make it to permanent checked. 

            vjuranek vjuranek
            nq00155492 Gaurav
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: