GIS-1621 - Expand variables properly; Format script
This commit is contained in:
parent
60127bfce1
commit
dafdaa9a08
1 changed files with 76 additions and 23 deletions
|
|
@ -8,15 +8,28 @@ pipeline {
|
|||
steps {
|
||||
checkout([$class: 'GitSCM',
|
||||
branches: [
|
||||
[name: 'origin/${BRANCH_NAME}']
|
||||
[name: "origin/${BRANCH_NAME}"]
|
||||
],
|
||||
doGenerateSubmoduleConfigurations: false,
|
||||
extensions: [
|
||||
[$class: 'CleanBeforeCheckout'],
|
||||
[$class: 'CloneOption', depth: 0, noTags: false, reference: '${REPO_ROOT}/newsw', shallow: false, timeout: 60],
|
||||
[$class: 'CheckoutOption', timeout: 60],
|
||||
[$class: 'RelativeTargetDirectory', relativeTargetDir: 'GitRepository'],
|
||||
[$class: 'PathRestriction', excludedRegions: '', includedRegions: '''src/.* autobuild/.*''']
|
||||
[$class: 'CloneOption',
|
||||
depth: 0,
|
||||
noTags: false,
|
||||
reference: "${REPO_ROOT}/newsw",
|
||||
shallow: false,
|
||||
timeout: 60
|
||||
],
|
||||
[$class: 'CheckoutOption',
|
||||
timeout: 60
|
||||
],
|
||||
[$class: 'RelativeTargetDirectory',
|
||||
relativeTargetDir: 'GitRepository'
|
||||
],
|
||||
[$class: 'PathRestriction',
|
||||
excludedRegions: '',
|
||||
includedRegions: '''src/.* autobuild/.*'''
|
||||
]
|
||||
],
|
||||
submoduleCfg: [
|
||||
],
|
||||
|
|
@ -30,14 +43,24 @@ pipeline {
|
|||
steps {
|
||||
checkout([$class: 'GitSCM',
|
||||
branches: [
|
||||
[name: 'refs/tags/${FD1200_FIRMWARE_RELEASE_VERSION}']
|
||||
[name: "refs/tags/${FD1200_FIRMWARE_RELEASE_VERSION}"]
|
||||
],
|
||||
doGenerateSubmoduleConfigurations: false,
|
||||
extensions: [
|
||||
[$class: 'CleanBeforeCheckout'],
|
||||
[$class: 'CloneOption', depth: 0, noTags: false, reference: '${REPO_ROOT}/samba_fw_releases', shallow: true, timeout: 60],
|
||||
[$class: 'CheckoutOption', timeout: 60],
|
||||
[$class: 'RelativeTargetDirectory', relativeTargetDir: 'samba_fw']
|
||||
[$class: 'CloneOption',
|
||||
depth: 0,
|
||||
noTags: false,
|
||||
reference: "${REPO_ROOT}/samba_fw_releases",
|
||||
shallow: true,
|
||||
timeout: 60
|
||||
],
|
||||
[$class: 'CheckoutOption',
|
||||
timeout: 60
|
||||
],
|
||||
[$class: 'RelativeTargetDirectory',
|
||||
relativeTargetDir: 'samba_fw'
|
||||
]
|
||||
],
|
||||
submoduleCfg: [
|
||||
],
|
||||
|
|
@ -47,14 +70,24 @@ pipeline {
|
|||
])
|
||||
checkout([$class: 'GitSCM',
|
||||
branches: [
|
||||
[name: 'refs/tags/${XR_1003_EMBEDDED_LOGIC_RELEASE_VERSION}']
|
||||
[name: "refs/tags/${XR_1003_EMBEDDED_LOGIC_RELEASE_VERSION}"]
|
||||
],
|
||||
doGenerateSubmoduleConfigurations: false,
|
||||
extensions: [
|
||||
[$class: 'CleanBeforeCheckout'],
|
||||
[$class: 'CloneOption', depth: 0, noTags: false, reference: '${REPO_ROOT}/HMB_XR_1003_Embeddded_Logic.git', shallow: true, timeout: 60],
|
||||
[$class: 'CheckoutOption', timeout: 60],
|
||||
[$class: 'RelativeTargetDirectory', relativeTargetDir: 'xr1003_el']
|
||||
[$class: 'CloneOption',
|
||||
depth: 0,
|
||||
noTags: false,
|
||||
reference: "${REPO_ROOT}/HMB_XR_1003_Embeddded_Logic.git",
|
||||
shallow: true,
|
||||
timeout: 60
|
||||
],
|
||||
[$class: 'CheckoutOption',
|
||||
timeout: 60
|
||||
],
|
||||
[$class: 'RelativeTargetDirectory',
|
||||
relativeTargetDir: 'xr1003_el'
|
||||
]
|
||||
],
|
||||
submoduleCfg: [
|
||||
],
|
||||
|
|
@ -64,14 +97,23 @@ pipeline {
|
|||
])
|
||||
checkout([$class: 'GitSCM',
|
||||
branches: [
|
||||
[name: 'refs/tags/${VERSION_STAMPING_VERSION}']
|
||||
[name: "refs/tags/${VERSION_STAMPING_VERSION}"]
|
||||
],
|
||||
doGenerateSubmoduleConfigurations: false,
|
||||
extensions: [
|
||||
[$class: 'CleanBeforeCheckout'],
|
||||
[$class: 'CloneOption', noTags: false, reference: '${REPO_ROOT}\\ver_stamping_releases', shallow: true, timeout: 60],
|
||||
[$class: 'CheckoutOption', timeout: 60],
|
||||
[$class: 'RelativeTargetDirectory', relativeTargetDir: 'ver_stamping']
|
||||
[$class: 'CloneOption',
|
||||
noTags: false,
|
||||
reference: "${REPO_ROOT}/ver_stamping_releases",
|
||||
shallow: true,
|
||||
timeout: 60
|
||||
],
|
||||
[$class: 'CheckoutOption',
|
||||
timeout: 60
|
||||
],
|
||||
[$class: 'RelativeTargetDirectory',
|
||||
relativeTargetDir: 'ver_stamping'
|
||||
]
|
||||
],
|
||||
submoduleCfg: [],
|
||||
userRemoteConfigs: [
|
||||
|
|
@ -85,9 +127,18 @@ pipeline {
|
|||
doGenerateSubmoduleConfigurations: false,
|
||||
extensions: [
|
||||
[$class: 'CleanBeforeCheckout'],
|
||||
[$class: 'CloneOption', noTags: false, reference: '${REPO_ROOT}\\print_release_difference', shallow: true, timeout: 60],
|
||||
[$class: 'CheckoutOption', timeout: 60],
|
||||
[$class: 'RelativeTargetDirectory', relativeTargetDir: 'print_release_difference']
|
||||
[$class: 'CloneOption',
|
||||
noTags: false,
|
||||
reference: "${REPO_ROOT}/print_release_difference",
|
||||
shallow: true,
|
||||
timeout: 60
|
||||
],
|
||||
[$class: 'CheckoutOption',
|
||||
timeout: 60
|
||||
],
|
||||
[$class: 'RelativeTargetDirectory',
|
||||
relativeTargetDir: 'print_release_difference'
|
||||
]
|
||||
],
|
||||
submoduleCfg: [
|
||||
],
|
||||
|
|
@ -229,11 +280,14 @@ pipeline {
|
|||
echo 'Post-build'
|
||||
}
|
||||
failure {
|
||||
step([$class: 'LogParserPublisher', parsingRulesPath: 'GitRepository/autobuild/build/log parsing rules/vs.txt', useProjectRule: true])
|
||||
step([$class: 'LogParserPublisher',
|
||||
parsingRulesPath: 'GitRepository/autobuild/build/log parsing rules/vs.txt',
|
||||
useProjectRule: true
|
||||
])
|
||||
}
|
||||
success {
|
||||
echo 'Succeeded build'
|
||||
build job: '${BRANCH_NAME}_test',
|
||||
build job: "${BRANCH_NAME}_test",
|
||||
parameters: [
|
||||
string(name: 'TEST_PORT', value: '2016'),
|
||||
booleanParam(name: 'PIPELINE_NO_TEST', value: false),
|
||||
|
|
@ -247,4 +301,3 @@ pipeline {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue