У нас вы можете посмотреть бесплатно DevOps Jenkins Interview Preparation или скачать в максимальном доступном качестве, видео которое было загружено на ютуб. Для загрузки выберите вариант из формы ниже:
Если кнопки скачивания не
загрузились
НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если возникают проблемы со скачиванием видео, пожалуйста напишите в поддержку по адресу внизу
страницы.
Спасибо за использование сервиса ClipSaver.ru
Q1) How Jenkins pipeline handles multi environment Deployment Ans) Defining environments in Jenkins file pipeline{ agent any environment{ Dev_server="dev-example.com" Prod_server="prod-example.com" } stages { stage('Build'){ steps{ script{ ------ } } } stage('Deploy to Development'){ when{ branch 'develop' } steps{ script{ deployToEnvironment(Dev_server) } } } stage('Deploy to Prod''){ when{ branch 'main' } steps{ script{ deployToEnvironment(Prod_server) } } } } } Handling configurations for different environments environment { URL=credentials('db_url') API_Key=credentials('api_key') } Use a parallel mechanism for speeding deployment Use approval mechanism for deployment in prod Q2) Are dev,test, prod environment setup on different server/node agent, if yes how we reference that in our pipeline. Ans) It is done for security and isolation purpose pipeline{ agent none stages{ stage('Build') { agent {label 'dev-node'} steps{ ------- } } stage('Test') { agent{label 'test-node'} steps{ ----- } } } } pipeline{ agent none stages{ stage('Build') { steps{ node('dev-node') ------- } } stage('Test') { steps{ node ('test-node') ----- } } } } Manage Jenkins- Manage node and clouds Q3) Multi branch setup Ans)1. Install Multi Branch plugin 2.Dashboard - New item - Choose multibranch pipeline - Under branch source , add source and select git repository type , provide repository url and credentials 3. Scan multibranch pipeline - Jenkins will automatically discover branches and create pipeline jobs for them - Set the build strategy Follow branch naming convention to limit branch discovery #devops #devopsengineer #devopsinterview #devopsmadeeasy