Jenkins Interview Questions Flashcards

1
Q

How do you create a Maven job in Jenkins?

A

a. Run Jenkins
b. Add Maven plugins
c. Create a Maven Job
d. Specify the location of your Selenium project for example provide the github location
e. Click build

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you integrate Jenkins with Selenium?

A

https://www.softwaretestinghelp.com/integration-of-jenkins-with-selenium-webdriver/

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Jenkins how can you get a failed build?

A

Click and open your Maven project, under Build History if the icon is in red color it means it failed. You can click and view the details of the failed build. See console logs to view the details/reason of the failure.
(See visuals on the Maven, GIT & Jenkins IQ PDF)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is a freestyle job?

A

Jenkins can be used to perform the typical build server work, such as doing continuous/official/nightly builds, run tests, or perform some repetitive batch tasks.

This is called “free-style software project” in Jenkins.

Freestyle build jobs are general-purpose build jobs, which provides a maximum of flexibility.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How do you configure a job to send mails when Jenkins job execution completes?

A

Inside your Jenkins project , click Configure > Under Post-build Actions, select Email Notification and enter your Email Address

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How can you get the log of the reports in Jenkins?

A

When you are at Jenkins Home > Click Manage Jenkins > Click System Log

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How do you configure Jenkins to run GitHub based changes?

A

Specify the location of your github project in the Poll SCM section enter “ * * * * *”

This will check github for changes every minute

If there are changes it will execute the build

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How do you time test in Jenkins?

A

Test Results Analyzer Plugin

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Do you know how to build a Jenkins job?

A

There are many standard plugins available within a Jenkins freestyle project to help you overcome this problem.

They allow you to configure build triggers and offers
project-based security for your Jenkins project.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How do you check reports in Jenkins?

A

After the build is finished, you can view the results of your TestComplete tests in Jenkins.

You can view the results from the build page. If generating JUnit-style reports or JUnit reports was enabled, you can also view the results in a way you find suitable for this type of reports.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the default port for Jenkins?

A

The default is port 8080

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is Jenkins Pipeline?

A

Pipeline is a workflow with a group of jobs that are chained and integrated with each other in sequence.

Each job will be dependent on each other.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly