DevOps

Jenkins

Pipelines, Jenkinsfile, plugins, agents, declarative vs scripted pipelines, Blue Ocean, troubleshooting builds

22 питань зі співбесід·
Mid-Level
1

What is a Jenkinsfile?

Відповідь

A Jenkinsfile is a text file containing the definition of a Jenkins pipeline, stored in the project repository. It allows versioning the pipeline configuration with the source code, facilitating traceability and collaboration. Using a Jenkinsfile with the Pipeline as Code approach is a best practice recommended by Jenkins.

2

What is the main difference between a declarative and scripted pipeline in Jenkins?

Відповідь

Declarative pipelines use a structured and predefined syntax with mandatory sections like agent and stages, offering a simpler and more readable approach. Scripted pipelines use pure Groovy code, offering more flexibility but requiring programming expertise. For most cases, declarative is recommended for its simplicity and maintainability.

3

What is the purpose of the agent directive in a declarative Jenkinsfile?

Відповідь

The agent directive specifies where and how the pipeline should execute. It can be defined globally for the entire pipeline or individually per stage. Options include any to run on any available agent, none to define specific agents per stage, or label to target agents with specific labels. Properly configuring agents allows optimizing resource usage and build performance.

4

What is the role of the stages section in a declarative pipeline?

5

How to manage credentials securely in a Jenkinsfile?

+19 питань зі співбесід

Інші теми співбесід DevOps

Version Control & Git

Junior
20 запитань

Linux Fundamentals

Junior
22 запитань

Shell Scripting & Bash

Mid-Level
20 запитань

Networking Basics

Junior
22 запитань

Docker Fundamentals

Junior
24 запитань

CI/CD Fundamentals

Junior
18 запитань

GitHub Actions

Mid-Level
22 запитань

GitLab CI/CD

Mid-Level
22 запитань

Kubernetes Basics

Mid-Level
26 запитань

Kubernetes Networking

Mid-Level
24 запитань

Kubernetes Advanced

Mid-Level
24 запитань

Ingress & API Gateway

Mid-Level
20 запитань

Terraform Basics

Mid-Level
22 запитань

Terraform Advanced

Mid-Level
22 запитань

Ansible & Configuration Management

Mid-Level
20 запитань

AWS Essentials

Mid-Level
26 запитань

Azure Fundamentals

Mid-Level
22 запитань

GCP Fundamentals

Mid-Level
22 запитань

Monitoring & Prometheus

Mid-Level
22 запитань

Logging & ELK Stack

Mid-Level
20 запитань

Alerting & Incident Response

Mid-Level
20 запитань

Cloud Identity & Secrets

Mid-Level
22 запитань

CI/CD Pipeline Security

Mid-Level
20 запитань

Helm & Kubernetes

Mid-Level
20 запитань

Runtime & Cluster Security

Senior
24 запитань

Container Supply Chain Security

Senior
22 запитань

Service Mesh & Istio

Senior
24 запитань

GitOps & ArgoCD

Senior
22 запитань

Progressive Delivery

Senior
20 запитань

Distributed Observability

Senior
22 запитань

Disaster Recovery & Backup

Senior
20 запитань

Performance Optimization

Senior
22 запитань

Cloud Cost Optimization

Senior
20 запитань

SRE Principles

Senior
24 запитань

Chaos Engineering

Senior
20 запитань

Platform Engineering

Senior
22 запитань

Опануй DevOps для наступної співбесіди

Отримай доступ до всіх питань, flashcards, технічних тестів, вправ code review та симуляторів співбесід.

Почни безкоштовно