This repository has been archived by the owner on Aug 10, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJenkinsfile
87 lines (85 loc) · 1.8 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
pipeline {
agent any
options {
ansiColor('xterm')
}
stages {
stage('SETUP') {
steps {
fileExists './uas'
sh './uas nuke'
sh './uas controls docker start'
}
}
stage('INITIAL CHECKS') {
parallel {
stage('ENVIRONMENT INFO') {
steps {
sh 'date'
sh 'env'
sh 'pwd'
}
}
stage('LINT') {
steps {
sh './uas lint --check'
}
}
}
}
stage('STATIC ANALYSIS') {
when{
expression {
return env.GIT_BRANCH == 'origin/master';
}
}
steps {
sh "cppcheck --xml --xml-version=2 --enable=all . -i modules -i tools -i src/ground -i src/vision 2> /tmp/cppcheck-report.xml"
withSonarQubeEnv('UAS@UCLA SonarQube') {
sh "/home/jenkins_uasatucla/sonar-scanner-4.0.0.1744-linux/bin/sonar-scanner"
}
}
}
stage('FETCH') {
steps {
sh './tools/scripts/controls/exec.sh ./tools/scripts/controls/fetch_dependencies.sh'
}
}
stage('BUILD') {
parallel {
stage('BUILD CONTROLS') {
steps {
sh './uas controls build'
}
}
stage('BUILD VISION') {
steps {
sh './uas vision build'
}
}
stage('BUILD GROUND') {
steps {
sh 'echo "Ground CI is disabled until we fix proto issues."'
}
}
}
}
stage('TEST') {
parallel {
stage('SITL TESTS') {
steps {
sh 'echo fix this'
}
}
stage('UNIT TESTS') {
steps {
sh 'echo fix this'
}
}
}
}
}
environment {
PATH = "/usr/local/bin:/usr/bin:/bin:$PATH"
}
}