-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathJenkinsfile
57 lines (57 loc) · 1.24 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
pipeline {
agent {
docker {
image 'px4io/px4-dev-simulation:2017-09-26'
args '--env CCACHE_DISABLE=1 --env CI=true'
}
}
stages {
stage('Quality Checks') {
steps {
sh 'make check_format'
}
}
stage('Build') {
steps {
sh 'make nuttx_px4fmu-v2_default'
archiveArtifacts 'build/*/*.px4'
}
}
stage('Test') {
steps {
sh 'make posix_sitl_default test_results_junit'
junit 'build/posix_sitl_default/JUnitTestResults.xml'
}
}
stage('Generate Metadata') {
parallel {
stage('airframe') {
steps {
sh 'make airframe_metadata'
archiveArtifacts 'airframes.md, airframes.xml'
}
}
stage('parameters') {
steps {
sh 'make parameters_metadata'
archiveArtifacts 'parameters.md, parameters.xml'
}
}
stage('modules') {
steps {
sh 'make module_documentation'
archiveArtifacts 'modules/*.md'
}
}
}
}
stage('S3 Upload') {
when {
branch 'master|beta|stable'
}
steps {
sh 'echo "uploading to S3"'
}
}
}
}