diff --git a/Jenkinsfile b/Jenkinsfile index 0b4d9a32..f6b37dd5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,7 +18,9 @@ pipeline { } } stage('Build Firmware on PR') { - when { env.BRANCH_NAME.startsWith('PR')} + when { + branch pattern: "PR-.*", comparator: "REGEXP" + } steps { script { echo "Building on PR : $BRANCH_NAME"