
This change allows the user to select if he wants to sign the patch using the SIGN_PATCH variable, when set to True it will automatically add the "--remote-sign" option to the patch-builder script and export the env variables, SIGNING_USER and SIGNING_SERVER, from the build.conf Test plan: PASS: Run entire patch pipeline with SIGN_PATCH enable Story: 2010676 Task: 51404 Change-Id: I7e895f30ea64a517a3555117250a4f00f8b6dfe1 Signed-off-by: Dostoievski Batista <dostoievski.albinobatista@windriver.com>
73 lines
1.5 KiB
Plaintext
73 lines
1.5 KiB
Plaintext
// vim: syn=groovy
|
|
|
|
//
|
|
// Copyright (c) 2024 Wind River Systems, Inc.
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
|
|
library "common@${params.JENKINS_SCRIPTS_BRANCH}"
|
|
|
|
setBuildDescr()
|
|
|
|
pipeline {
|
|
agent any
|
|
options {
|
|
timestamps()
|
|
}
|
|
parameters {
|
|
string(
|
|
name: 'MASTER_JOB_NAME'
|
|
)
|
|
string(
|
|
name: 'MASTER_BUILD_NUMBER'
|
|
)
|
|
string(
|
|
name: 'JENKINS_SCRIPTS_BRANCH'
|
|
)
|
|
string(
|
|
name: 'SW_VERSION'
|
|
)
|
|
string(
|
|
name: 'PATCH_NUM'
|
|
)
|
|
string(
|
|
name: 'TIMESTAMP'
|
|
)
|
|
booleanParam(
|
|
name: 'SHELL_XTRACE'
|
|
)
|
|
booleanParam(
|
|
name: 'DRY_RUN'
|
|
)
|
|
booleanParam(
|
|
name: 'SIGN_PATCH'
|
|
)
|
|
string (
|
|
name: 'BUILD_HOME'
|
|
)
|
|
string(
|
|
name: 'CUSTOM_PATCH_RECIPE',
|
|
description: "Allow you to specify the path to a custom patch recipe to be used when creating the patch.",
|
|
defaultValue: ""
|
|
)
|
|
string(
|
|
name: 'PATCH_NAME',
|
|
description: "Allow you to specify a custom patch name for the .patch file.",
|
|
defaultValue: ""
|
|
)
|
|
}
|
|
stages {
|
|
stage("patch-make") {
|
|
steps {
|
|
sh("bash ${Constants.SCRIPTS_DIR}/patch-make.sh")
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
cleanup {
|
|
cleanupPartJob()
|
|
}
|
|
}
|
|
}
|