Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

How can we stop a scheduled job from being executed temporarily?

Answer»

Disable the job from the job details PAGE to temporarily STOP all scheduled executions & other factors/events from TRIGGERING the job and enable it back to resume the job schedules/triggers. If a job is not REQUIRED permanently, we can delete the job from the jobs LIST view page.

2.

How do you store credentials in Jenkins securely?

Answer»

Credentials can be stored securely in JENKINS using the Credentials PLUGIN, which stores different types of credentials like - Username with a password, SSH username with the private key, AWS Credentials, Jenkins Build Token, Secret File/Text, X509 & other certificates, Vault related credentials securely with proper encryption & decryption as and when required.

3.

Explain Jenkins Multibranch Pipeline?

Answer»

Jenkins Multibranch Pipeline

It is a pipeline job that can be configured to Create a set of Pipeline projects according to the detected branches in one SCM REPOSITORY. This can be used to configure pipelines for all branches of a single repository e.g. if we maintain different branches (i.e. production CODE branches) for different configurations LIKE locales, currencies, countries, ETC.

4.

What are the types of Jenkins pipelines?

Answer»

Jenkins Pipelines can be either - a Declarative pipeline or a Scripted Pipeline. Declarative pipeline MAKES use of numerous, generic, predefined build steps/stages (i.e. CODE snippets) to build our job according to our build/automation needs whereas, with Scripted pipelines, the steps/stages can be custom-defined & used using a GROOVY syntax which provides better CONTROL & fine-tuned execution levels.

5.

What is a Jenkins Pipeline?

Answer»

Jenkins Pipeline

The pipeline is a special type of Jenkins JOB - SIMPLY a SEQUENCE of STEPS controlled by a defined logic - which Orchestrates long-running activities that can span across multiple build agents. It is suitable for building pipelines (FORMERLY known as workflows) and/or organizing complex activities that cannot be easily achieved using a freestyle job.

Understand how to create your first pipeline here

6.

What is a Jenkins job?

Answer»

A Job/Project is the fundamental unit of a logical work (LIKE a software build, an automation task, test execution, etc) using the Jenkins automation server and other required plugins, configurations & infrastructures.

Jobs can be of different types like - a FREESTYLE project, a multi-configuration project, a pipeline project, a multi-branch project, etc.

7.

What are the ways to install Jenkins?

Answer»

Jenkins can be INSTALLED using -

  1. NATIVE System Package Manager like - apt (Linux), brew (Mac), etc.
  2. Docker (popular docker IMAGES for Jenkins is AVAILABLE for different platforms like Unix/Mac/Windows in the docker registry)
  3. KUBERNETES (available as a helm chart and can be installed on our Kubernetes clusters)
  4. Standalone (on any machine with a Java Runtime Environment installed)

For more detailed installation instructions refer official documentation

8.

What are the common use cases Jenkins is used for?

Answer»

Jenkins being open-source automation can be used for any kind of software-based automation. Some of the common use-cases include but not limited to -

  • Software BUILD jobs
  • Sanity/Smoke/CI/Regression test jobs
  • Web/Data SCRAPING related jobs
  • Code coverage measurement jobs
  • General-purpose automation
  • Reverse ENGINEERING jobs
  • Key Decoding jobs & MANY other jobs where software automation will be applicable.
9.

Tell me something about Continuous Integration, Continuous Delivery, and Continuous Deployment?

Answer»

Continuous INTEGRATION: A software development process where the changes made to software are integrated into the main CODE as and when a patch is ready so that the software will be always ready to be - built, tested, deployed, MONITORED - continuously.

Continuous Delivery: This is a Software Development Process where the continuously integrated (CI) changes will be tested & deployed continuously into a specific environment, generally through a manual release process, after all the quality checks are successful

Continuous Deployment: A Software Development practice where the continuously integrated (CI) changes are deployed AUTOMATICALLY into the target environment after all the quality checks are successful

Based on the level of automation, the above three PARADIGMS can be better represented as below -

CI/CD and Continuous Deployment
10.

What is Jenkins?

Answer»

JENKINS is a self-contained, open-source automation server that can be USED to AUTOMATE all SORTS of tasks RELATED to building, testing, and delivering or deploying software. Jenkins can be installed through native system packages, Docker, or even run standalone by any machine with a Java Runtime Environment (JRE) installed.