diff options
Diffstat (limited to 'jenkins/build.jpl')
-rw-r--r-- | jenkins/build.jpl | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/jenkins/build.jpl b/jenkins/build.jpl index ed1b106..05bdeeb 100644 --- a/jenkins/build.jpl +++ b/jenkins/build.jpl @@ -38,6 +38,8 @@ COMMIT_ID Git commit SHA1 at the revision of the snapshot BUILD_ENVIRONMENT Name of the build environment +NODE_LABEL + Label to use to choose a node on which to run this job PUBLISH (boolean) Publish build results via the KernelCI backend API EMAIL (boolean) @@ -59,10 +61,11 @@ PARALLEL_BUILDS @Library('kernelci') _ -import org.kernelci.build.Kernel import org.kernelci.util.Job def buildConfig(kdir, kci_core) { + def jopt = "" + if (params.PARALLEL_BUILDS) jopt = "-j${params.PARALLEL_BUILDS}" @@ -108,11 +111,14 @@ publish_kernel \ """) } } + + dir("linux/_install_") { + archiveArtifacts("*.json") + } } -node("docker && builder") { +node("docker" && params.NODE_LABEL) { def j = new Job() - def k = new Kernel() def kci_core = "${env.WORKSPACE}/kernelci-core" def kdir = "${env.WORKSPACE}/linux" def docker_image = null @@ -135,7 +141,13 @@ node("docker && builder") { j.dockerPullWithRetry(docker_image).inside() { stage("Init") { timeout(time: 30, unit: 'MINUTES') { - k.downloadTarball(kdir, params.SRC_TARBALL) + dir(kci_core) { + sh(script: """./kci_build pull_tarball \ + --kdir ${kdir} \ + --url ${params.SRC_TARBALL} \ + --retries=12 \ + """) + } } } |