Skip to content
This repository has been archived by the owner on Apr 22, 2022. It is now read-only.

Commit

Permalink
updated when expression (#126)
Browse files Browse the repository at this point in the history
* updated when expression

* removed extra brace

* fix regex
  • Loading branch information
jonbattista authored Jun 9, 2020
1 parent 34f4a08 commit b833164
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit b833164

Please sign in to comment.