Git, Maven and Jenkins Interview Questions for Automation Testing
34 Git, Maven and Jenkins questions with answers for automation testing roles — 10 easy, 20 medium, 4 hard.
About Git, Maven and Jenkins
Covers the tooling around automation code: Git branching, merging, rebasing and conflict handling; Maven lifecycle, Surefire, profiles and dependencies; and Jenkins pipelines, triggers, credentials, parallel stages and reporting. Interviewers expect you to run your suite from the command line and in CI, not only from the IDE.
How do you resolve a merge conflict in Git?
Show answer
What is a .gitignore file and what should an automation project ignore?
Show answer
What is git stash and when would you use it?
Show answer
What is the Maven build lifecycle?
Show answer
How do you pass parameters like browser and environment from Maven to your tests?
Show answer
How do you trigger a Jenkins job automatically?
Show answer
What is the post section in a Jenkins declarative pipeline?
Show answer
What does a good commit message look like?
Show answer
What is a Jenkins agent and how do labels help run tests?
Show answer
What are the advantages of version control for test code?
Show answer
What is the use of Maven in automation projects?
Show answer
How do you integrate Selenium tests with Jenkins?
Show answer
What is a Jenkins pipeline?
Show answer
What is the difference between git merge and git rebase?
Show answer
What is the Maven Surefire plugin and how do you configure it for TestNG?
Show answer
What are Maven dependency scopes?
Show answer
What are Maven profiles and how do you use them in automation?
Show answer
What is the difference between a declarative and a scripted Jenkins pipeline?
Show answer
Write a declarative Jenkinsfile that runs Maven tests and publishes results.
Show answer
How do you store passwords and tokens safely in Jenkins?
Show answer
Your Jenkins test stage marks the build green even though tests failed. Why?
Show answer
What branching strategy do you use for test automation code?
Show answer
What is git cherry-pick?
Show answer
How do you undo a commit that has already been pushed?
Show answer
Tell me about a time a CI pipeline you owned broke right before a release.
Show answer
How do you publish Allure or Extent reports from Jenkins?
Show answer
What is the difference between git reset --soft, --mixed and --hard?
Show answer
What is the Maven Failsafe plugin and how is it different from Surefire?
Show answer
Describe a time you automated a manual build or release step for the QA team.
Show answer
How do you run tests on multiple browsers in parallel in Jenkins?
Show answer
What is a Maven multi-module project and when would you use it for automation?
Show answer
How do you fix a Maven dependency conflict?
Show answer
Nightly Jenkins regression runs take 4 hours. How would you bring it down?
Show answer
Frequently asked questions
How important is Git, Maven and Jenkins in Automation Testing interviews?
Covers the tooling around automation code: Git branching, merging, rebasing and conflict handling; Maven lifecycle, Surefire, profiles and dependencies; and Jenkins pipelines, triggers, credentials, parallel stages and reporting. Interviewers expect you to run your suite from the command line and in CI, not only from the IDE.
How should I use the Git, Maven and Jenkins sheet?
Go top to bottom — easy to hard. Answer before opening each answer, tick what you solved and save misses to Last-Minute Revision.