GitLab Executors

Shell Executor

< >

4.4. Shell Executor

shell-logo.png

Description: Runs jobs using the host’s shell.

Best For: Simple tasks, no additional dependencies.

Why? The Shell executor offers simplicity and ease of setup, making it suitable for straightforward tasks without complex dependencies. It does not require additional setup or containerization, making it a lightweight option for quick jobs. However, it lacks the isolation provided by Docker or Kubernetes executors, which may be a concern for security-sensitive workflows.

Advantages

  • Simplicity: Easy to set up and use for simple tasks.
  • No Additional Dependencies: Suitable for tasks with minimal dependencies.

Disadvantages

  • Lack of Isolation: The Shell executor does not provide the same level of isolation as Docker or Kubernetes, potentially compromising security.
  • Environment Variability: Reliance on the host environment may lead to inconsistencies across different environments, resulting in potential issues during execution.