jenkins-pipelines/pipelines/parts/clone-source.Jenkinsfile
Davlet Panech 5fdfe8c26e PATCH_LIST: workaround for Jenkins bugs
Some versions of Jenkins crash when a multi-line parameter is empty.
Solution: set PATCH_LIST to "-" by default, and treat it as empty.

Signed-off-by: Davlet Panech <davlet.panech@windriver.com>
Change-Id: I7bd8f994debbfe86bc914ce469b81518ca13ea4a
2022-10-06 11:25:51 -04:00

64 lines
1.1 KiB
Plaintext

// vim: syn=groovy
//
// Copyright (c) 2022 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: 'BUILD_HOME',
)
string (
name: 'TIMESTAMP'
)
string (
name: 'PUBLISH_TIMESTAMP'
)
booleanParam (
name: 'DRY_RUN'
)
booleanParam (
name: 'SHELL_XTRACE'
)
string (
name: 'REFRESH_SOURCE'
)
text (
name: 'PATCH_LIST',
defaultValue: '-'
)
}
stages {
stage ("clone-source") {
steps {
sh ("${Constants.SCRIPTS_DIR}/clone-source.sh")
}
}
}
post {
cleanup {
cleanupPartJob()
}
}
}