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