diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-12-17 17:07:28 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-12-17 17:07:28 +0100 |
commit | e1a979d81fb74fa6010a5a8ceee9113df634a406 (patch) | |
tree | bd794a27b75a6a0be7b2537150a7e3ae5e48a791 | |
parent | 970bf04bfe481c6ecfb28a2f43e799b196a2ec94 (diff) | |
download | vyos-1x-e1a979d81fb74fa6010a5a8ceee9113df634a406.tar.gz vyos-1x-e1a979d81fb74fa6010a5a8ceee9113df634a406.zip |
Revert "Jenkins: T1870: add 'PR-' prefix to pull request refspec"
This reverts commit de2716ae67a8d88886686fbd7e8db33b6e1a5ebd.
-rw-r--r-- | Jenkinsfile | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/Jenkinsfile b/Jenkinsfile index 67787f659..d5be6d5c9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -88,16 +88,18 @@ pipeline { steps { script { dir('build') { - scm { - git { - remote { - name(getGitRepoName()) - url(getGitRepoURL()) - refspec('+refs/pull/*:refs/remotes/origin/pr/*') - } - branch('${sha1}') - } - } + checkout([ + $class: 'GitSCM', + branches: [[name: getGitBranchName()]], + doGenerateSubmoduleConfigurations: false, + extensions: [[$class: 'CleanCheckout']], + submoduleCfg: [], + userRemoteConfigs: [[ + refspec: '+refs/pull/*/head' + + ':refs/remotes/origin/*', + url: getGitRepoURL() + ]] + ]) } } } |