From 984d3938734b9edab04e68d0ed7c2fd1c0d21315 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Wed, 1 Sep 2021 12:16:25 +0000 Subject: [PATCH] adding test jenkinsfile --- jenkins-pipeline/Jenkinsfile.001 | 80 ++++++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 jenkins-pipeline/Jenkinsfile.001 diff --git a/jenkins-pipeline/Jenkinsfile.001 b/jenkins-pipeline/Jenkinsfile.001 new file mode 100644 index 0000000..df1efbc --- /dev/null +++ b/jenkins-pipeline/Jenkinsfile.001 @@ -0,0 +1,80 @@ +pipeline { + + agent none + + environment { + SVN_URL = 'https://code.miflux.com/svn/hio/trunk/hio' + } + stages { + + stage('Multi-Builld') { + matrix { + axes { + axis { + name 'BUILD_TYPE' + //values 'debug-shared', 'debug-static', 'release-shared', 'release-static' + values 'debug-shared', 'debug-static' + } + + axis { + name 'PLATFORM' + //values 'fedora' , 'freebsd' + values 'fedora' + } + } + + //excludes { + // exclude { + // axis { + // name 'BUILD_TYPE' + // value 'debug-shared' + // } + // axis { + // name 'PLATFORM' + // value 'fedora' + // } + // } + //} + + //agent any + agent { label "${PLATFORM}" } + + stages { + stage('Checkout') { + steps { + checkout([$class: 'SubversionSCM', + additionalCredentials: [], + excludedCommitMessages: '', + excludedRegions: '', + excludedRevprop: '', + excludedUsers: '', + filterChangelog: false, + ignoreDirPropChanges: false, + includedRegions: '', + locations: [[ + depthOption: 'infinity', + ignoreExternalsOption: true, + //local: 'local-dir', + remote: "${SVN_URL}"]], + workspaceUpdater: [$class: 'UpdateUpdater']]) + } + } + + stage('Build') { + steps { + echo "Do build for ${BUILD_TYPE} on ${PLATFORM}" + sh "./configure && make" + } + } + + stage('Test') { + steps { + echo "Do Test for ${BUILD_TYPE} on ${PLATFORM}" + sh "make check" + } + } + } + } + } + } +}