Skip to content

Commit

Permalink
[SW-1365] Run only last build in jenkins (#1285)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubhava committed Jun 19, 2019
1 parent 7ec9439 commit 3d6705b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
5 changes: 1 addition & 4 deletions jenkins/Jenkinsfile-external
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,7 @@ properties(
]
)

// Only PR builds have the CHANGE_BRANCH set
if (env.CHANGE_BRANCH != null && env.CHANGE_BRANCH != ''){
cancelPreviousBuilds()
}
cancelPreviousBuilds()

node('docker && micro') {
docker.withRegistry("http://harbor.h2o.ai") {
Expand Down
5 changes: 1 addition & 4 deletions jenkins/Jenkinsfile-internal
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@ properties(
]
)

// Only PR builds have the CHANGE_BRANCH set
if (env.CHANGE_BRANCH != null && env.CHANGE_BRANCH != ''){
cancelPreviousBuilds()
}
cancelPreviousBuilds()

node('docker && micro') {
docker.withRegistry("http://harbor.h2o.ai") {
Expand Down

0 comments on commit 3d6705b

Please sign in to comment.