diff options
author | Guillaume Tucker <guillaume.tucker@collabora.com> | 2018-10-16 23:02:37 +0100 |
---|---|---|
committer | Guillaume Tucker <guillaume.tucker@collabora.com> | 2018-10-22 10:55:58 +0100 |
commit | a2edb5181a0f6ed96a926110574aa8a1b5bf57a6 (patch) | |
tree | c19e9e182f6d3abf8641c1c8438d8ca162ec0538 /jenkins/bisect.jpl | |
parent | a4d4702781975040ab9d272bd74e8d4875ec9697 (diff) |
bisect.jpl: use org.kernelci.build.Kernel
Use the common Kernel library class to call cloneKciCore().
Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Diffstat (limited to 'jenkins/bisect.jpl')
-rw-r--r-- | jenkins/bisect.jpl | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/jenkins/bisect.jpl b/jenkins/bisect.jpl index 2ed7272..85e7bfb 100644 --- a/jenkins/bisect.jpl +++ b/jenkins/bisect.jpl @@ -75,6 +75,9 @@ TREES_WHITELIST */ +@Library('kernelci') _ +import org.kernelci.build.Kernel + /* Working around some seemingly broken Python set-up... */ def eggCache() { def egg_cache = env.WORKSPACE + "/python-egg-cache" @@ -137,12 +140,8 @@ git checkout --detach ${git_rev} */ def cloneKciCore(kci_core) { - sh(script: "rm -rf ${kci_core}") - dir("${kci_core}") { - git(url: params.KCI_CORE_URL, - branch: params.KCI_CORE_BRANCH, - poll: false) - } + def k = new Kernel() + k.cloneKciCore(kci_core, params.KCI_CORE_URL, params.KCI_CORE_BRANCH) } def cloneLinux(kdir) { |