Update Jenkinsfile to support bugfix branches and pull requests.

This commit is contained in:
Taylor Dondich
2017-02-07 08:37:46 -08:00
parent db66e03953
commit a953260ee8

3
Jenkinsfile vendored
View File

@@ -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."
}