updated when for PR
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user