updating the test jenkinsfiles

This commit is contained in:
hyung-hwan 2021-09-01 13:06:54 +00:00
parent a99187cbc4
commit 10a366a9e0

View File

@ -14,8 +14,8 @@ pipeline {
axes { axes {
axis { axis {
name 'BUILD_TYPE' name 'BUILD_TYPE'
//values 'debug-shared', 'debug-static', 'release-shared', 'release-static' values 'debug-shared', 'debug-static', 'release-shared', 'release-static'
values 'debug-shared', 'debug-static' //values 'debug-shared', 'debug-static'
} }
axis { axis {
@ -24,7 +24,7 @@ pipeline {
values 'fedora' values 'fedora'
} }
} }
//excludes { //excludes {
// exclude { // exclude {
// axis { // axis {
@ -42,9 +42,32 @@ pipeline {
agent { label "${PLATFORM}" } agent { label "${PLATFORM}" }
stages { stages {
stage('Setup') {
steps {
script {
if (env.BUILD_TYPE == 'debug-shared') {
env.CONFIG_OPTS = '--enable-debug=yes --enable-static=no --enable-shared=yes'
}
else if (env.BUILD_TYPE == 'debug-static') {
env.CONFIG_OPTS = '--enable-debug=yes --enable-static=yes --enable-shared=no'
}
else if (env.BUILD_TYPE == 'release-shared') {
env.CONFIG_OPTS = '--enable-debug=no --enable-static=no --enable-shared=yes'
}
else if (env.BUILD_TYPE == 'release-static') {
env.CONFIG_OPTS = '--enable-debug=no --enable-static=yes --enable-shared=no'
}
else {
echo "Invalid Build Type - ${env.BUILD_TYPE}"
sh "exit 1"
}
}
}
}
stage('Checkout') { stage('Checkout') {
steps { steps {
echo "Checking out for ${BUILD_TYPE} on ${PLATFORM}" echo "Checking out for ${BUILD_TYPE} on ${PLATFORM} - ${CONFIG_OPTS}"
checkout([$class: 'SubversionSCM', checkout([$class: 'SubversionSCM',
additionalCredentials: [], additionalCredentials: [],
excludedCommitMessages: '', excludedCommitMessages: '',
@ -55,18 +78,20 @@ pipeline {
ignoreDirPropChanges: false, ignoreDirPropChanges: false,
includedRegions: '', includedRegions: '',
locations: [[ locations: [[
depthOption: 'infinity', depthOption: 'infinity',
ignoreExternalsOption: true, ignoreExternalsOption: true,
//local: 'local-dir', //local: 'local-dir',
remote: "${THIS_SVN_URL}"]], remote: "${THIS_SVN_URL}"
workspaceUpdater: [$class: 'UpdateUpdater']]) ]],
workspaceUpdater: [$class: 'UpdateUpdater']
])
} }
} }
stage('Build') { stage('Build') {
steps { steps {
echo "Do build for ${BUILD_TYPE} on ${PLATFORM}" echo "Do build for ${BUILD_TYPE} on ${PLATFORM}"
sh "cd ${THIS_PROJECT} && touch -r * */* && ./configure && make" sh "ls -laF && cd ${THIS_PROJECT} && touch -r * */* && ./configure ${CONFIG_OPTS} && make"
} }
} }