updated when for PR

This commit is contained in:
2026-09-23 04:09:57 -07:00
parent 0d21c347c0
commit a88b836a25
+2
View File
@@ -64,6 +64,8 @@ pipeline {
when { when {
// Matches Multibranch Pipeline PR branch patterns (e.g., PR-123) // Matches Multibranch Pipeline PR branch patterns (e.g., PR-123)
changeRequest() changeRequest()
// Triggers if running on any branch that is not 'main'
expression { env.BRANCH_NAME != 'main' }
} }
steps { steps {
script { script {