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 {
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 '**'
}
}
}

Loading…
Cancel
Save