updated when for PR
This commit is contained in:
@@ -64,6 +64,8 @@ pipeline {
|
||||
when {
|
||||
// Matches Multibranch Pipeline PR branch patterns (e.g., PR-123)
|
||||
changeRequest()
|
||||
// Triggers if running on any branch that is not 'main'
|
||||
expression { env.BRANCH_NAME != 'main' }
|
||||
}
|
||||
steps {
|
||||
script {
|
||||
|
||||
Reference in New Issue
Block a user