-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathJenkinsfile
23 lines (20 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
node {
def app
stage('Clone') {
checkout scm
sh 'git clean -xdf'
}
stage('Test Compile') {
sh 'cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo && cmake --build build'
}
stage('Static Analyzer') {
echo 'Analyzing with PVS Studio...'
sh 'rm -rf build && mkdir -p build && cd build && cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo && pvs-studio-analyzer trace -- make -j65'
sh '~/run-pvs.bash build'
sh 'python3 ~/pvs-log-to-md.py build/pvs.tasks > index.html'
catchError(buildResult: 'SUCCESS', stageResult: 'FAILURE') {
sh '~/check-pvs-build.bash build/pvs.tasks'
}
publishHTML([allowMissing: false, alwaysLinkToLastBuild: false, keepAll: false, reportDir: '', reportFiles: 'index.html', reportName: 'PVS-Studio Report', reportTitles: ''])
}
}