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.
add_jenkins_pipeline
Eugene Kim 6 years ago
parent 7eecd8cb99
commit 4d38c6b1c0
  1. 27
      Jenkinsfile

27
Jenkinsfile vendored

@ -6,36 +6,19 @@ pipeline {
} }
stages { stages {
stage('Configure') { stage('Build & Install') {
steps { steps {
sh ''' sh '''
mkdir -p build
cd build
cmake ..
'''
}
}
stage('Build') {
steps {
sh '''
cd build
make
'''
}
}
stage('Install') {
steps {
sh '''
cd build
rm -rf destdir 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') { stage('Package') {
steps { steps {
sh ''' sh '''
cd build
find destdir/usr/local -depth | \\ find destdir/usr/local -depth | \\
sed -n \'s@^destdir/usr/local/@@p\' | \\ sed -n \'s@^destdir/usr/local/@@p\' | \\
tr \'\\n\' \'\\0\' | \\ tr \'\\n\' \'\\0\' | \\
@ -46,7 +29,7 @@ pipeline {
} }
stage('Save Build') { stage('Save Build') {
steps { steps {
archiveArtifacts 'build/**' archiveArtifacts '**'
} }
} }
} }

Loading…
Cancel
Save