From b833164439a2436cd8ea690c6ba488b405219b59 Mon Sep 17 00:00:00 2001 From: Jon Battista Date: Tue, 9 Jun 2020 11:39:14 -0400 Subject: [PATCH] updated when expression (#126) * updated when expression * removed extra brace * fix regex --- Jenkinsfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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"