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.
|
* Branch should be in gitflow format. If not, then we'll abort.
|
||||||
*/
|
*/
|
||||||
|
if(!env.BRANCH_NAME.matches(/(feature|hotfix|bugfix|release)\/.+/) && !test.matches(/^PR-.*$/)) {
|
||||||
if(!env.BRANCH_NAME.matches(/(feature|hotfix|release)\/.+/)) {
|
|
||||||
hipchatSend message: "${env.BRANCH_NAME} Build: Does not match gitflow naming. Aborted", room: 'engineering'
|
hipchatSend message: "${env.BRANCH_NAME} Build: Does not match gitflow naming. Aborted", room: 'engineering'
|
||||||
error "Job does not follow gitflow naming format."
|
error "Job does not follow gitflow naming format."
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user