A DevOps engineer wants to build a CI/CD pipeline that automatically builds and tests code every time a developer pushes a new branch to a Git repository. Which Cloud Build trigger type should they use?
Trap 1: Scheduled trigger
Scheduled triggers run on a time basis, not on events.
Trap 2: Manual trigger
Manual triggers require explicit invocation, not automatic on push.
Trap 3: Pull request trigger
PR triggers react to pull requests, not direct pushes.
- A
Scheduled trigger
Why wrong: Scheduled triggers run on a time basis, not on events.
- B
Manual trigger
Why wrong: Manual triggers require explicit invocation, not automatic on push.
- C
Push to any branch trigger
This trigger fires on any branch push, including new branches.
- D
Pull request trigger
Why wrong: PR triggers react to pull requests, not direct pushes.