-
Notifications
You must be signed in to change notification settings - Fork 5
/
Jenkinsfile
43 lines (40 loc) · 1.09 KB
/
Jenkinsfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
pipeline {
agent {
dockerfile {
filename 'Dockerfile'
label 'docker-host-dev'
}
}
options {
buildDiscarder(logRotator(numToKeepStr: '30', artifactNumToKeepStr: '30'))
timeout(time: 1, unit: 'HOURS')
}
stages {
stage('Git') { steps {
sh "git submodule update --init"
} }
stage('CMake') { steps {
dir("${env.WORKSPACE}/QBeat/build") {
sh "cmake -DCMAKE_INSTALL_PREFIX=${env.WORKSPACE}/QBeat/install ${env.WORKSPACE}/QBeat/"
}
} }
stage('Build') {
steps {
dir("${env.WORKSPACE}/QBeat/build") {
sh '''make install'''
}
}
}
stage('Artifacts') {
steps {
sh "tar -C ${env.WORKSPACE}/QBeat/install/ -cvzf ${env.WORKSPACE}/QBeat.tar.gz ."
archiveArtifacts artifacts: 'QBeat.tar.gz', fingerprint: true, onlyIfSuccessful: true
}
}
}
post {
always {
emailext attachLog: true, body: '''${DEFAULT_CONTENT}''', compressLog: true, recipientProviders: [[$class: 'CulpritsRecipientProvider']], subject: '${DEFAULT_SUBJECT}', to: '${DEFAULT_RECIPIENTS}'
}
}
}