aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Tucker <guillaume.tucker@collabora.com>2019-04-19 10:36:47 +0100
committerGuillaume Tucker <guillaume.tucker@collabora.com>2019-05-03 12:59:46 +0100
commit7dbff1eef655856e75e69ab4df455477cc4d11be (patch)
tree39ac3523895b277d5dddcc20928e9b3a531d2c29
parente1df28e83a10078df56737f30932aaa41d048377 (diff)
build-trigger.jpl: update with new build job parameters
Update the list of parameters passed to the build jobs to match the latest changes, that is to say using the build environment and build configuration parameters that rely on data from build-configs.yaml and the kci_build tool Signed-off-by: Guillaume Tucker <guillaume.tucker@collabora.com>
-rw-r--r--jenkins/build-trigger.jpl27
1 files changed, 12 insertions, 15 deletions
diff --git a/jenkins/build-trigger.jpl b/jenkins/build-trigger.jpl
index aae31f3..6d77129 100644
--- a/jenkins/build-trigger.jpl
+++ b/jenkins/build-trigger.jpl
@@ -137,15 +137,16 @@ list_kernel_configs \
def data = kernel_config_raw.tokenize(' ')
def arch = data[0]
def defconfig = data[1]
- def cc = data[2]
- def cc_version = data[3]
- config_list.add([arch, defconfig, cc, cc_version])
+ def build_env = data[2]
+ config_list.add([arch, defconfig, build_env])
}
}
}
def addBuildOpts(config, kci_core, opts) {
dir(kci_core) {
+ opts['config'] = config
+
def opts_raw = sh(
script: """\
./kci_build \
@@ -184,19 +185,16 @@ arch_list \
}
}
-def buildKernelStep(job, arch, config, opts, cc='gcc', cc_version='7') {
+def buildKernelStep(job, arch, defconfig, build_env, opts) {
def str_params = [
'ARCH': arch,
- 'DEFCONFIG': config,
- 'TREE': opts['git_url'],
- 'TREE_NAME': opts['tree'],
+ 'DEFCONFIG': defconfig,
'GIT_DESCRIBE': opts['describe'],
'GIT_DESCRIBE_VERBOSE': opts['describe_verbose'],
'COMMIT_ID': opts['commit'],
- 'BRANCH': opts['branch'],
'SRC_TARBALL': opts['tarball_url'],
- 'CC': cc,
- 'CC_VERSION': cc_version,
+ 'BUILD_CONFIG': opts['config'],
+ 'BUILD_ENVIRONMENT': build_env,
]
def job_params = []
@@ -271,15 +269,14 @@ node("defconfig-creator") {
for (x in configs) {
def arch = x[0]
- def config = x[1]
- def cc = x[2]
- def cc_version = x[3]
+ def defconfig = x[1]
+ def build_env = x[2]
- def step_name = "${i} ${arch} ${config} ${cc} ${cc_version}"
+ def step_name = "${i} ${arch} ${defconfig} ${build_env}"
print(step_name)
builds[step_name] = buildKernelStep(
- "kernel-build", arch, config, opts, cc, cc_version)
+ "kernel-build", arch, defconfig, build_env, opts)
i += 1
}