-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating

Jenkins Administrator's Guide
By :

A pipeline runs either inside or outside of the sandbox.
Jenkins does not offer protection against dangerous code outside of the sandbox, hence, it is very risky to be outside of the sandbox. Areas outside of the sandbox are meant to be used by administrators for Jenkins administrative tasks, not for running software build/test/release pipelines. Since it has a very limited scope of use, there are only two ways to run outside of the sandbox.
A pipeline with its content directly written into the UI, as opposed to a pipeline that loads a Jenkinsfile from an SCM as we saw in Chapter 3, GitOps-Driven CI Pipeline with GitHub, and Chapter 4, GitOps-Driven CD Pipeline with Docker Hub and More Jenkinsfile Features, can run outside of the Groovy sandbox. We can create a new pipeline, then in the Pipeline / Definition drop-down menu, choose Pipeline script to get a textbox titled Script. Afterward, uncheck the box for Use Groovy Sandbox...