-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
41 lines (38 loc) · 1014 Bytes
/
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
pipeline {
agent {
dockerfile {
filename 'source/Dockerfile'
label 'docker-host-dev'
}
}
options {
buildDiscarder(logRotator(numToKeepStr: '30', artifactNumToKeepStr: '30'))
checkoutToSubdirectory('source')
timeout(time: 1, unit: 'HOURS')
}
stages {
stage('CMake') { steps {
dir("${env.WORKSPACE}/build") {
sh '''cmake -DCMAKE_INSTALL_PREFIX=../install ../source'''
}
} }
stage('Build') {
steps {
dir("${env.WORKSPACE}/build") {
sh '''make install'''
}
}
}
stage('Artifacts') {
steps {
sh '''tar -cvzf OSGLauncher.tar.gz install/*'''
archiveArtifacts artifacts: 'OSGLauncher.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}'
}
}
}