-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathJenkinsfile
55 lines (41 loc) · 1.39 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
node('linux') {
stage 'checkout'
deleteDir()
checkout scm
sh 'git submodule init'
withCredentials([usernameColonPassword(credentialsId: '5bcf8245-68c4-43e8-a150-5d037909863f', variable: 'CREDENTIALS')]) {
sh 'git config --file=.gitmodules submodule.AVR-HAL.url "https://${CREDENTIALS}@github.com/PW-Sat2/AVR-HAL.git"'
}
sh 'git submodule sync'
sh 'git submodule update'
sh 'git update-index --assume-unchanged .gitmodules'
stage 'clean'
sh 'make clean'
stage 'checkStyle'
sh 'make checkStyle'
stage 'checkFormat'
sh 'make checkFormat'
stage 'PLD.build'
sh 'make PLD_build'
stage 'PLD.unit_tests'
sh 'make PLD_unit_tests'
stage 'EPS_A.build'
sh 'make EPS_A_build'
stage 'EPS_A.unit_tests'
sh 'make EPS_A_unit_tests'
stage 'EPS_B.build'
sh 'make EPS_B_build'
stage 'EPS_B.unit_tests'
sh 'make EPS_B_unit_tests'
stage 'SunS.build'
sh 'make SunS_build'
stage 'SunS.unit_tests'
sh 'make SunS_unit_tests'
stage 'EGSE'
sh 'make EGSE'
stage 'Archive'
step([$class: 'ArtifactArchiver', artifacts: '*EPS*/cmake-build-release*/src/*.hex', fingerprint: true])
step([$class: 'ArtifactArchiver', artifacts: '*EPS*/cmake-build-release*/src/*.eep', fingerprint: true])
step([$class: 'ArtifactArchiver', artifacts: '*PLD*/cmake-build-release/src/*.hex', fingerprint: true])
step([$class: 'ArtifactArchiver', artifacts: '*SunS*/cmake-build-release-*/src/*.hex', fingerprint: true])
}