Jenkins Flashcards

1
Q

How do you integrate Jenkins with Selenium?

A

It is happens by installing necessary plugins, configuring a Jenkins job to execute Selenium tests using build tools like Maven or Gradle, and reviewing test results in Jenkins after each build.

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

How do you create a maven job in Jenkins?

A

we navigate to the Jenkins dashboard, then click “New Item,” then choose “Freestyle project,” configure general settings, specify source code management if needed, add a Maven build step with goals like clean install, save the configuration, and trigger a manual build.

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

On Jenkins, how can you get to the failed build?

A

we navigate to the project’s main page, identify the failed build in the “Build History,” and click on the build number to view the console output for error analysis.

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

How do you configure a job to send emails when Jenkins job execution is complete?

A

To set up email notifications for a Jenkins job after completion, we install the Email Notification plugin, configure SMTP settings, and add a post-build action in the job’s settings, specifying recipient addresses.

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

What is a freestyle job?

A

it refers to a project configuration style that allows users to define and customize build steps using a graphical user interface, providing a flexible and user-friendly way to configure jobs without the need for scripting or coding.

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

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

A

go to the job’s build history, click on the relevant build number, and access the “Console Output” link in the build details.

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

How do you configure Jenkins to run based on GitHub changes?

A

install the GitHub plugin, set up a webhook in GitHub to notify Jenkins, and in Jenkins, choose “GitHub hook trigger for GITScm polling” in the job settings under “Build Triggers.

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

Do you know how to build a Jenkins job?

A

log in to Jenkins, go to the desired job’s page, click “Build Now,” and monitor the progress and results in the “Build History” and “Console Output” sections.

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

How do you check reports in Jenkins?

A

go to the job’s page, click on the specific build number in the “Build History,” and review detailed information, including test results or other reports linked within the build details.

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

What is the default port for Jenkins?

A

The default port for Jenkins is 8080.

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