Update Jenkinsfile to support bugfix branches and pull requests.
This commit is contained in:
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@@ -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."
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user