Ravi Sir's Cards › Chapter 21: Jenkins Pipeline and Jenkinsfile
How do you run deploy only on the main branch?
How do you run deploy only on the main branch? Use when { branch 'main' } on the deploy stage. Other branches skip it.

Lesson: 21.14 Parameters, when, parallel, and matrix · मराठी card