CI/CD - Jenkins Pull Request Testing - multichoice questions
Question 1
A developer creates a pull request from smith/fix_connection_str
into main
.
Before the code changes would be merged to production branch (main
), the code should be tested by the Pull Request Testing pipeline in Jenkins.
Choose the correct sentence regarding which version of code should be tested:
- The
smith/fix_connection_str
feature branch as is. - The
main
branch, aftersmith/fix_connection_str
was merged into it. - The
main
branch, beforesmith/fix_connection_str
was merged into it. - The
main
branch as is.
Question 2
When branch main
is protected from being pushed from developer's local machines:
- Developers can potentially merge their branches to the
main
branch locally. - Developers can not merge their branches to the
main
branch locally.
Question 3
You are working on a project with a team of developers. You want to ensure that the codebase adheres to consistent style guidelines, and coding best practices.
What type of test should be performed to achieve this goal?
- Linting Test
- Load Test
- Functional Test
- Unit Test