From 4d38c6b1c00d7e792237c7aac0c3c15e403ba715 Mon Sep 17 00:00:00 2001 From: Eugene Kim Date: Sat, 16 Mar 2019 17:36:07 -0700 Subject: [PATCH] Simplify build A few notes: - Do not use cmake. It uses a different library name. - Skip all and use install target, which builds only the bare minimum that will be installed into $PREFIX. --- Jenkinsfile | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6ad6a19..58cd2c2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,36 +6,19 @@ pipeline { } stages { - stage('Configure') { + stage('Build & Install') { steps { sh ''' - mkdir -p build - cd build - cmake .. - ''' - } - } - stage('Build') { - steps { - sh ''' - cd build - make - ''' - } - } - stage('Install') { - steps { - sh ''' - cd build rm -rf destdir - make DESTDIR=`pwd`/destdir install + install -d destdir/usr/local/include + install -d destdir/usr/local/lib + make PREFIX=`pwd`/destdir/usr/local install ''' } } stage('Package') { steps { sh ''' - cd build find destdir/usr/local -depth | \\ sed -n \'s@^destdir/usr/local/@@p\' | \\ tr \'\\n\' \'\\0\' | \\ @@ -46,7 +29,7 @@ pipeline { } stage('Save Build') { steps { - archiveArtifacts 'build/**' + archiveArtifacts '**' } } }