From ea6bd036e19617c6851204e838c420463c6d10e4 Mon Sep 17 00:00:00 2001 From: Marc Mattmueller Date: Thu, 14 Oct 2021 13:02:15 +0200 Subject: [PATCH] jenkins/ramdisk/mmc: added parameter to overwrite the build node Signed-off-by: Marc Mattmueller --- Jenkinsfile_RamdiskImages | 3 ++- Jenkinsfile_mmcImages | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile_RamdiskImages b/Jenkinsfile_RamdiskImages index 2010ca2..6e71539 100644 --- a/Jenkinsfile_RamdiskImages +++ b/Jenkinsfile_RamdiskImages @@ -8,7 +8,7 @@ def yoctocommon pipeline { agent { node { - label 'oem-ci' + label "${params.NODE_NAME}" } } @@ -16,6 +16,7 @@ pipeline { choice(name: 'MACHINE', choices: ['select...', 'am335x-nrhw20', 'am335x-nmhw21', 'imx8-nmhw23', 'am335x-nmhw24', 'am335x-hw25', 'am335x-hw26'], description: 'choose target platform') choice(name: 'IMAGE_TYPE', choices: ['lava', 'fct', 'minimal'], description: 'choose image type') string(name: 'RLS_VERSION', defaultValue: '', description: 'Set the version to build and use committed submodules') + string(name: 'NODE_NAME', defaultValue: 'oem-ci', description: 'Overwrite default node name to build on') booleanParam(name: 'CLEAN_BUILD', defaultValue: false, description: 'clean all temp directories before build starts') } diff --git a/Jenkinsfile_mmcImages b/Jenkinsfile_mmcImages index 22aa52c..0fb28aa 100644 --- a/Jenkinsfile_mmcImages +++ b/Jenkinsfile_mmcImages @@ -8,7 +8,7 @@ def yoctocommon pipeline { agent { node { - label 'oem-ci' + label "${params.NODE_NAME}" } } @@ -16,6 +16,7 @@ pipeline { choice(name: 'MACHINE', choices: ['select...', 'am335x-nrhw20', 'am335x-nmhw21', 'imx8-nmhw23', 'am335x-nmhw24', 'am335x-hw25', 'am335x-hw26'], description: 'choose target platform') choice(name: 'IMAGE_TYPE', choices: ['dev', 'bootloader', 'release'], description: 'choose image type') string(name: 'RLS_VERSION', defaultValue: '', description: 'Set the version to build and use committed submodules') + string(name: 'NODE_NAME', defaultValue: 'oem-ci', description: 'Overwrite default node name to build on') booleanParam(name: 'CLEAN_BUILD', defaultValue: false, description: 'clean all temp directories before build starts') }