aboutsummaryrefslogtreecommitdiff
path: root/jenkins/bisect.jpl
diff options
context:
space:
mode:
authorGuillaume Tucker <guillaume.tucker@collabora.com>2017-11-27 16:52:39 +0000
committerGuillaume Tucker <guillaume.tucker@collabora.com>2018-01-16 10:32:40 +0000
commit1e041fa9d51b051f0e5f46fbf44af6c1ad1afa4c (patch)
tree3871314643ae75654727d58e62a41b32944e5650 /jenkins/bisect.jpl
parentec8998bbf9faa08a7f50c0952eb54ba6422e17ad (diff)
bisect.jpl: minor clean-up
* add separators between groups of functions * make the difference between null and 0 when testing status value Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
Diffstat (limited to 'jenkins/bisect.jpl')
-rw-r--r--jenkins/bisect.jpl36
1 files changed, 30 insertions, 6 deletions
diff --git a/jenkins/bisect.jpl b/jenkins/bisect.jpl
index 27af7c5..a3944dc 100644
--- a/jenkins/bisect.jpl
+++ b/jenkins/bisect.jpl
@@ -19,6 +19,17 @@
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+/* Working around some seemingly broken Python set-up... */
+def eggCache() {
+ def egg_cache = env.WORKSPACE + "/python-egg-cache"
+ sh(script: "mkdir -p ${egg_cache}")
+ return egg_cache
+}
+
+/* ----------------------------------------------------------------------------
+ * git utilities
+ */
+
def getSHA(kdir) {
def sha
@@ -65,6 +76,10 @@ git checkout --detach ${git_rev}
}
}
+/* ----------------------------------------------------------------------------
+ * cloning projects
+ */
+
def cloneKCIBuild(kci_build) {
sh(script: "rm -rf ${kci_build}")
dir("${kci_build}") {
@@ -118,12 +133,9 @@ def cloneLAVA_CI(lava_ci) {
}
}
-/* Working around some seemingly broken Python set-up... */
-def eggCache() {
- def egg_cache = env.WORKSPACE + "/python-egg-cache"
- sh(script: "mkdir -p ${egg_cache}")
- return egg_cache
-}
+/* ----------------------------------------------------------------------------
+ * kernel build
+ */
def buildKernel(kdir, kci_build) {
dir(kdir) {
@@ -147,6 +159,10 @@ def buildRevision(kdir, kci_build, git_rev, name) {
return tag
}
+/* ----------------------------------------------------------------------------
+ * kernel test with LAVA v2
+ */
+
def submitJob(lava_ci, describe) {
dir(lava_ci) {
sh(script: "rm -rf data; mkdir data")
@@ -222,6 +238,10 @@ def runTest(lava_ci, describe) {
return getResult(lava_ci)
}
+/* ----------------------------------------------------------------------------
+ * bisection
+ */
+
def bisectStart(kdir) {
def status
@@ -259,6 +279,10 @@ def bisectNext(kdir, status) {
}
}
+/* ----------------------------------------------------------------------------
+ * pipeline
+ */
+
node("bisection") {
def kci_build = env.WORKSPACE + '/kernelci-build'
def kdir = env.WORKSPACE + '/linux'