aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGuillaume Tucker <guillaume.tucker@collabora.com>2018-12-20 15:36:20 +0000
committerGuillaume Tucker <guillaume.tucker@collabora.com>2019-02-13 16:04:24 +0000
commita93e8eed4491ff4e12975c5403989ad1c43a0077 (patch)
tree1bd98606bd6c38bb4ed4da9a2c52a7472139bff6 /src
parent1b7c5dad763fbb6c8f38523c596c1db437c38c57 (diff)
org.kernelci.job: add .cloneKciCore() and clean-up
Move org.kernelci.build.cloneKciCore() to org.kernelci.job as this is not specific to build jobs but other jobs too. Also clean-up the code using cloneKciCore(). Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Diffstat (limited to 'src')
-rw-r--r--src/org/kernelci/build/Kernel.groovy9
-rw-r--r--src/org/kernelci/util/Job.groovy9
2 files changed, 9 insertions, 9 deletions
diff --git a/src/org/kernelci/build/Kernel.groovy b/src/org/kernelci/build/Kernel.groovy
index e5b2426..7853b25 100644
--- a/src/org/kernelci/build/Kernel.groovy
+++ b/src/org/kernelci/build/Kernel.groovy
@@ -20,15 +20,6 @@
package org.kernelci.build
-def cloneKciCore(path, url, branch) {
- sh(script: "rm -rf ${path}")
- dir("${path}") {
- git(url: url,
- branch: branch,
- poll: false)
- }
-}
-
def downloadTarball(kdir, url, filename="linux-src.tar.gz") {
sh(script: "rm -rf ${kdir}")
dir(kdir) {
diff --git a/src/org/kernelci/util/Job.groovy b/src/org/kernelci/util/Job.groovy
index 51c007b..cbfbabb 100644
--- a/src/org/kernelci/util/Job.groovy
+++ b/src/org/kernelci/util/Job.groovy
@@ -34,6 +34,15 @@ def addBoolParams(params, bool_params) {
}
}
+def cloneKciCore(path, url, branch) {
+ sh(script: "rm -rf ${path}")
+ dir("${path}") {
+ git(url: url,
+ branch: branch,
+ poll: false)
+ }
+}
+
def dockerImageName(base, cc, cc_version, kernel_arch) {
def image_name = "${base}${cc}-${cc_version}"