Add: [Jenkinsfile] rebase the pull-request on top of master (#6720)
This allows PRs to be a bit older, but still validate the correct result
This commit is contained in:
3
Jenkinsfile
vendored
3
Jenkinsfile
vendored
@@ -52,6 +52,9 @@ node {
|
|||||||
// Ensure we also have origin/master available
|
// Ensure we also have origin/master available
|
||||||
sh "git fetch --no-tags origin master:refs/remotes/origin/master"
|
sh "git fetch --no-tags origin master:refs/remotes/origin/master"
|
||||||
|
|
||||||
|
// Try to rebase to origin/master; if this fails, fail the CI
|
||||||
|
sh "git rebase origin/master"
|
||||||
|
|
||||||
stash name: "source", useDefaultExcludes: false
|
stash name: "source", useDefaultExcludes: false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user