23 lines
543 B
Plaintext
23 lines
543 B
Plaintext
|
pipeline {
|
||
|
agent {
|
||
|
dockerfile true
|
||
|
}
|
||
|
stages {
|
||
|
stage('Prepare Build') {
|
||
|
steps {
|
||
|
sh 'mkdir build; cd build; cmake -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILEr=clang++ ..'
|
||
|
}
|
||
|
}
|
||
|
stage('Build') {
|
||
|
steps {
|
||
|
sh 'cd build; make -j$(nproc) package'
|
||
|
}
|
||
|
post {
|
||
|
success {
|
||
|
archiveArtifacts artifacts: 'build/*.tar.gz', fingerprint: true
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|