-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile_zmq
50 lines (49 loc) · 1.19 KB
/
Jenkinsfile_zmq
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
43
44
45
46
47
48
49
50
pipeline {
agent any
options {
buildDiscarder(logRotator(numToKeepStr: '5', artifactNumToKeepStr: '5'))
timeout(time: 1, unit: 'HOURS')
skipStagesAfterUnstable()
}
stages {
stage('Clean workspace') {
steps {
deleteDir()
sh 'ls -lah'
}
}
stage('Checkout source') {
steps {
sh "svn co file:///home/kin/svn_repo/zmq_testing/trunk ."
}
}
stage('Build') {
steps {
timeout(time: 30) {
sh 'mkdir -p build && cd build && cmake .. && make'
}
}
}
//stage('Test') {
// steps {
// sh ' cd build && tests/testfoo --gtest_output="xml:testresults.xml" && mkdir -p reports && mv testresults.xml reports/ '
// echo 'ls: $(ls)'
// }
//}
stage('Artifact') {
parallel {
stage('Artifact') {
steps {
sh 'ls -lah'
archiveArtifacts(onlyIfSuccessful: true, artifacts: 'build/bin/*, bin/*')
}
}
stage('Code Analysis') {
steps {
sh 'mkdir -p build/reports && cppcheck --xml --xml-version=2 . 2> build/reports/cppcheck.xml'
}
}
}
}
}
}