forked from openairproject/sensor-esp32
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Jenkinsfile
32 lines (32 loc) · 947 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
pipeline {
agent any
stages {
stage('build') {
steps {
checkout scm
sh 'rm -rf build'
sh 'bin/make_default.sh'
}
}
stage('test') {
steps {
sh '/opt/oap/dev/tty_refresh.sh'
sh 'bin/make_tests.sh'
sh 'sleep 3'
sh 'bin/run_tests.py /opt/oap/dev/ttyOAP.TEST'
}
}
stage('archive') {
steps {
sh 'cat build/sensor-esp32.bin | openssl dgst -sha256 > build/sensor-esp32.bin.sha256'
}
post {
success {
archiveArtifacts artifacts: 'build/sensor-esp32.*', fingerprint: true
archiveArtifacts artifacts: 'build/partitions.bin', fingerprint: true
archiveArtifacts artifacts: 'build/bootloader/bootloader.bin', fingerprint: true
}
}
}
}
}