mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-10 00:10:20 +00:00
ci: checkout PR with modified scripts for testing
The `git` command does not allow checking out a non-branch (like a PR), so it is needed to use `checkout` instead. Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
6e3c1dadae
commit
b5036489c8
@ -7,9 +7,11 @@ def base = ''
|
||||
|
||||
node('cico-workspace') {
|
||||
stage('checkout ci repository') {
|
||||
git url: "${ci_git_repo}",
|
||||
branch: "${ci_git_branch}",
|
||||
changelog: false
|
||||
if (params.ghprbPullId != null) {
|
||||
ref = "pull/${ghprbPullId}/head"
|
||||
}
|
||||
checkout([$class: 'GitSCM', branches: [[name: 'FETCH_HEAD']],
|
||||
userRemoteConfigs: [[url: "${ci_git_repo}", refspec: "${ref}"]]])
|
||||
}
|
||||
|
||||
stage('reserve bare-metal machine') {
|
||||
@ -30,9 +32,6 @@ node('cico-workspace') {
|
||||
|
||||
try {
|
||||
stage('prepare bare-metal machine') {
|
||||
if (params.ghprbPullId != null) {
|
||||
ref = "pull/${ghprbPullId}/head"
|
||||
}
|
||||
if (params.ghprbTargetBranch != null) {
|
||||
base = "--base=${ghprbTargetBranch}"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user