diff --git a/Jenkinsfile b/Jenkinsfile index b10158ce7..aa54badf8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,8 +3,7 @@ node { /** * Branch should be in gitflow format. If not, then we'll abort. */ - - if(!env.BRANCH_NAME.matches(/(feature|hotfix|release)\/.+/)) { + if(!env.BRANCH_NAME.matches(/(feature|hotfix|bugfix|release)\/.+/) && !test.matches(/^PR-.*$/)) { hipchatSend message: "${env.BRANCH_NAME} Build: Does not match gitflow naming. Aborted", room: 'engineering' error "Job does not follow gitflow naming format." }