Unroll &&; apt-get update -y; list packaged files

add_jenkins_pipeline
Eugene Kim 6 years ago
parent 9cb71a4f4e
commit fc5af3430d
  1. 17
      Jenkinsfile

17
Jenkinsfile vendored

@ -9,12 +9,15 @@ pipeline {
stages { stages {
stage('Dependencies') { stage('Dependencies') {
steps { steps {
sh 'apt-get update && apt-get install -y libssl-dev libgmp-dev gcc g++ cmake make cpio xz-utils' sh '''apt-get update -y
apt-get install -y libssl-dev libgmp-dev gcc g++ cmake make cpio xz-utils'''
} }
} }
stage('Configure') { stage('Configure') {
steps { steps {
sh '''mkdir build && cd build && cmake .. sh '''mkdir build
cd build
cmake ..
''' '''
} }
} }
@ -25,10 +28,10 @@ pipeline {
} }
stage('Install') { stage('Install') {
steps { steps {
sh '''list() { ( sh '''list() {
cd /usr/local && \\ (cd /usr/local && exec find .) | \\
find . | sed -n \'s@^\\./@@p\' | sort sed -n \'s@^\\./@@p\' | sort
) } }
list > before.txt list > before.txt
make install make install
list > after.txt list > after.txt
@ -39,7 +42,7 @@ comm -13 before.txt after.txt > installed.txt'''
steps { steps {
sh '''sort -r -t/ installed.txt | \\ sh '''sort -r -t/ installed.txt | \\
tr \'\\n\' \'\\0\' | \\ tr \'\\n\' \'\\0\' | \\
cpio -o0 -Hnewc | \\ cpio -o0 -Hnewc -v | \\
xz -9 > mcl.cpio.xz''' xz -9 > mcl.cpio.xz'''
} }
} }

Loading…
Cancel
Save