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 do I reset my Jenkins admin password?

Answer»

To RESET the Jenkins ADMIN password, simply disable the security in the config.xml file.

  • If running on LINUX, edit the FOLLOWING file:
    vi /var/lib/jenkins/config.xml file
  • Search for the term <useSecurity>true</useSecurity> and change the word True to False
  • Restart the Jenkins Server
    Service Jenkins Restart
2.

What is groovy script in jenkins?

Answer»

Groovy Script is a Java-syntax COMPATIBLE Object-Oriented PROGRAMMING LANGUAGE for a Java PLATFORM. It is used in Jenkins to orchestrate/create pipelines. Being flexible in terms of languages, it's used as a glue for combining code in different languages into a single project.

3.

What are upstream and downstream projects in Jenkins?

Answer»

An upstream project is ONE in which a JOB is TRIGGERED before the ACTUAL project is triggered. Whereas, DOWNSTREAM project is one in which a job is triggered after the project has been triggered.

4.

What is CI and CD in Jenkins?

Answer»

CI stands for CONTINUOUS INTEGRATION and it is the practice of AUTOMATING the integration of code changes from multiple contributors in a software application.

CD stands for Continuous Delivery and it refers to the ability to get change such as configuration, bug fixes and experiments from build to production or directly to the end-user in a quick and sustainable way.

5.

Where is Jenkins home directory?

Answer»

Jenkins home directory CONTAINS all the details of the Jenkins server configuration, the details that are configured in the Manage Jenkins screen. These configuration details are stored in the form of a set of XML files, for example, a config.xml file It’s DEFAULT directory is .jenkins or .HUDSON (for older version)

NOTE: These are basic Jenkins interview QUESTIONS and have a higher probability of being asked.

6.

What is difference between Jenkins and Docker?

Answer»
JENKINSDOCKER
CI Engine which is USED to BUILD/test appsContainer engine used to manage and CREATE CONTAINERS
Automated Server Tool used for testing appsUsed to build and run multiple portable environments of a software stack
Provides an easy interface to create and manage multiple CI/CD PipelinesIt's only a container engine to hold a software application
Can be used to build Docker IMAGES based on a DockerFileIts plugin can be used to build containers for any application in Jenkins
7.

What is Jenkins file parameter?

Answer»

A FILE parameter is JENKINS allows a BUILD to accept new files which are to be submitted by the user when scheduling a new build. The uploaded file shall be PLACED INSIDE the workspace at the set location after the process of check-out/update is done.

8.

What is the use of poll SCM in Jenkins?

Answer»

Poll SCM PERIODICALLY polls the SCM to check whether the changes were made (i.e. NEW commits) and also builds the project if there are new commits pushed since the last UPDATED BUILD.

9.

How do you create a pipeline in Jenkins?

Answer»

To create pipelines in Jenkins, you must have a Jenkins instance setup with the appropriate plugins:

  • Jenkins 1.580.1 or later (Jenkins 2.0 is best)
  • Core PIPELINE Plugin
To create a simple pipeline, follow these steps:
  • Click on New Item on Jenkins home, enter a NAME for Pipeline and click OK.
  • Go to the Script text area of the config screen and enter your pipeline syntax.
  • Check the GROOVY Sandbox OPTION below the Script text Area to increase efficiency
  • Click Save
  • To create the pipeline, click on Build Now
  • Click on this and select CONSOLE Output to view the output
10.

How do I update Jenkins to latest version?

Answer»
11.

How to install jenkins on windows?

Answer»
12.

How do I start Jenkins service in Windows?

Answer»

After DOWNLOADING the Jenkins installation file for WINDOWS, go to your CMD Terminal and RUN the FOLLOWING command:

jenkins.exe start

Note: These are basic Jenkins interview questions a CANDIDATE must know the answers to.

13.

How do you secure Jenkins?

Answer»

By default, Jenkins 1.x does not perform any security checks. But, you can manually change that by customizing access CONTROLS and configuring it as per one’s need.

Access control locks down access to the Jenkins UI Console and users MAY log in to GET access via Passwords.

One more feature in Jenkins for security is the additional SUBSYSTEMS to prevent direct and indirect ATTACKS on the system.

14.

What is the difference between hudson and jenkins?

Answer»
HUDSONJENKINS
Fewer releases with more focus on backward compatibilityMore releases with riskier compatibility issues
Focused more on Maven and/or Nexus IntegrationFocused on more active community support
Professional support from Sonatype or ORACLE, sometimesSupport only from Original Creator
A SMALL community of PLUGIN developersClassic OSS Style DEVELOPMENT Ecosystem
15.

What is pipeline in Jenkins? Alos explain its types?

Answer»

A PIPELINE in Jenkins refers to a suite of plugins that help implement & integrate Continuous Delivery Pipelines throughout Jenkins. A continuous delivery pipeline is an AUTOMATED expression for getting software from version control right through to your USERS and consumers.

There are two types of pipeline syntax to define a JenkinsFile
  • Declarative Pipeline: This type of syntax offers an easy way for the creation of pipelines. It contains a predefined hierarchy and offers users the ability to control all aspects of a pipeline EXECUTION in a simple, straightforward manner.
  • Scripted Pipeline: This type of Jenkins pipeline RUNS on the Jenkins master using a lightweight executor. It uses few resources to translate the pipeline into atomic commands.
16.

What is the difference between Jenkins and Bamboo?

Answer»
JENKINSBAMBOO
Open SourceNot Open-Source
UI has a simple functionalityMore efficient and organized UI
Basic config(Jira & Bitbucket) is limitedIn-built basic Configurations
A wider range of Plugins with 1000+ plugins availableLess Plugin support with only 100+ plugins available
Provides scope for Basic AutomationMore focused on BUILD, TEST and Deployment sectors

Note: These are basic QUESTIONS that are asked during a Jenkins interview QUESTION for DEVOPS candidates.

17.

What are the features of Jenkins?

Answer»
  • Easy to INSTALL on MULTIPLE OS
  • Easy-to-use with good User Interface
  • Easily scalable with over 400 third party plugin support
  • User Interface is very friendly with respect to customization. The setup environment can be configured inside.
  • JUnit; a test harness is integrated with Jenkins so as to PROVIDE RESULTS in graphical and tabular forms
  • Inside the environment, build scheduling is based on Cron Expression