diff --git a/Jenkinsfile b/Jenkinsfile index f978c3d..893b610 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,7 +17,7 @@ pipeline { when { beforeAgent(true) anyOf { - branch(pattern: "main|(\\d\\.\\d\\.x)", comparator: "REGEXP") + branch(pattern: "main|(\\d+\\.\\d+\\.x)", comparator: "REGEXP") not { triggeredBy 'UpstreamCause' } } } @@ -45,7 +45,7 @@ pipeline { when { beforeAgent(true) anyOf { - branch(pattern: "main|(\\d\\.\\d\\.x)", comparator: "REGEXP") + branch(pattern: "main|(\\d+\\.\\d+\\.x)", comparator: "REGEXP") not { triggeredBy 'UpstreamCause' } } }